I need info on my left testicle pain and relief.

Patient: I had left testicle pain and I felt relief after I masterbated . extreme relief. the semen came out yellow. Why? is it a infection? Could it or is it a std?

Symptoms: Left testicle pain, some pain and a brown mark on my foreskin

Doctor: