from history it seems that you might have some bacterial infection on local part giving rise to swelling and pain.
Due to this infection there might be having enlarge lymph
nodes in groin.
Consult your Obst and get examined.
With one antibiotic medicine course you will be alright.
Apply antibiotic cream locally.
Keep local hygiene clean and airy.
Ok and take care.