Hi, Welcome to HealthcareMagic Forum.
You are having a Infection as you are complaining of Scrotal Swelling. May be you should give yourself some rest from Masturbating and get yourself examined by a Urologist
at the eariest so that he can examine you and rule out the exact cause. You may need analgesics and antibiotics. Exercise regularly and avoid junk, eat healthy nutritious balanced diet. Try reducing your weight.