The causes of testicular pain could be due to injury, testicular torsion, inflammation of testis, epididymitis, mumps, testicular tumor, hernia, varicocele, urinary stones, sexually transmitted disease. Since you are having a discharge also, STD’s and prostatic infection should be ruled out.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.
i went to the doctor, the docter told me it was either varicocele or epididymitis, told me to take 3 Advil a day, it seems like its slowly getting better tho!