Thanks for your query.Based on the facts that you have posted it appears that you have painful hard lump near base of the penis.
This could be either boil or a sebaceous cyst
. However this can be confirmed only on clinical examination .
Consult qualified surgeon or urologist
for to confirm the diagnosis .
You need to take antibiotic for a week. Get the prescription from your family Physician.
It should subside in a week.