Thanks for your query.Based on the facts that you have posted it appears that you have developed infection of the testis following UTI.This can be confirmed only on clinical examination and ultrasound
scanning of the scrotum
Please consult qualified Urologist
for clinical examination .
Please get your routine urine test done and start taking some antibiotic like Ciprofloxacin
along with urinary antiseptic like Nitrofurntoin twice daily.
Take some urine alkaliser like Citralka or Oricitral thrice daily.and ensure to consume more water.
Get prescription of these drugs from your family Physician.
This should get cured in a week.