Thanks for your query,based on the facts that you have posted it appears that you have what is called as Sebaceous Cyst
over base of the penis and scrotum
The scrotal and skin around base of the penis skin is rich in sebaceous glands and hence prone to get more sebaceous cyst due to accumulation of sebum beneath the skin.
Normally they fade away without treatment however they need to be treated if increase in size or get infected.
Please consult qualified General Surgeon
for clinical evaluation and further treatment.
Please take broad spectrum antibiotics like Cefotaxime
along with anti inflammatory medication like Diclofenac
twice daily .
If problem persists even after taking antibiotic you may need to get it excised under local anaesthesia.