hi welcome to HCM.If you feel pain mainly when you ejaculate,Either hernia
or testicular carcinoma,one of two problems is likely. Infection is a possibility, either in the testes or the epididymis
. Mumps, of course, can infect the testes and occasionally leads to infertility
. And sexually transmitted diseases such as chlamydia can infect the epididymis.. testicular pain
are offered a simple course of antibiotics as treatment. If the pain is in both testes, and antibiotics don't seem to be helping, please consult your doc to confirm ok.not to worry,every health prob is having a proper treatment.