Thanks for posting your query.
Do you have fever/ watery diarrhea/ constipation/ spasmodic abdominal pain/ nausea
or vomiting/ acidic belching/ mucus discharge during defecation?
With the available describes symptoms, there appears to be least chances of any STDs involving your gut.
Although there could be chances of testicular swelling and pain due to some urinary infection.
You should consult with internal medicine specialist / general surgeon
and should go for thorough check up.
You should also go for complete blood count
imaging, urine routine and microscopy, x ray abdomen.
Treatment depends on exact diagnosis.
You should also go for urine culture and sensitivity for better clarification.
You should take complete antibiotics course, antispasmodics and serratiopeptidase
for reducing swelling.
Dr. Mayank Bhargava