###Human: I have testicular pain and swelling and it subsides only with hot baths and masturbation. Please help. ###Assistant: Hi. I appreciate your detailed description. Testicular pain can be apparent and have a cause or can be idiopathic (unknown) also. Testicular pain can be secondary to the inflammation of testis epididymis or both it can be associated with a hernia which not necessarily appears to you if it is small. It can as well be due to hydrocele (fluid collection around the testis) moreover varicocele (dilated veins around the testis). Testicular tumor can also cause pain testicular hematoma blood collection beside the testis or epididymal cyst, referred pain from lower ureteric stone lastly idiopathic. The accuracy of diagnosis depends on history and examination ultrasound of scrotum and ultrasound KUB (to role out any abnormality in your urinary system). Moreover urine tests to rule out urine infection. From your presentation, I doubt varicocele or hernia but cannot exclude other causes. Regarding your back pain it might be a referred type of pain from testis so I hope treating the testis pain relief it. You will need an ultrasound of your scrotum and urine analysis post ejaculation urine for culture. Then to follow up with results. At the moment for the pain, you are advised to take Naproxen sodium 500 mg twice daily for 30 days. Do not worry about it. I hope I can find the cause and give you the proper treatment after investigations further. You can follow up with me at your convenience. Scrotal support, wearing fit underwear will reduce your discomfort. I hope this helps. Ultrasound scrotum. Ultrasound KUB (kidney, ureter, and bladder). Urine analysis. Post ejaculatory urine culture. Naproxen sodium 500 twice daily for one month. Fit underwear. After investigations.