kind of stuff near the right groin is due deficiency in keeping your groin & testicular area in a hygienic way. Masturbating in underwear is the worst way of let out.
Soaked (by anything) underwear has to be removed immediately. Always wear clean, dry & loose underwear.
Your skin problem may be Infected Fungal Infection
. Antibiotic & Anti fungal ointments
in the night after a thorough wash and dry - sleeping without underwear till cure is advised. Try to avoid old contaminated underwear. Try to get relieved from masturbation