Thanks for your query,based on the facts that you have posted it appears that you have either mild infection of epididymis
, cord structures or Varicocele.
However this can be confirmed only on clinical examination by a qualified General Surgeon
and following basic tests.
1) Urine Routine Test.
2) Ultrasound scanning of Scrotum
3) Colour Doppler study of scrotum.
In the mean while start taking broad spectrum antibiotic like Cefexine along with anti inflammatory drug like Diclofenac