Thanks for your query,based on the facts that you have posted it appears that you have a tender painful mass about 2 cms above base of the penis .
Most likely this could be Boil (Staphylococcal infection
of hair follicle ) or a sebaceous cyst.
This can be confirmed only on clinical examination by a qualified General Surgeon
You need to take broad spectrum antibiotic like Cefexine along with anti inflammatory drug like Diclofenac
If problem persists it needs to be drained or excised under local anaesthesia.