Hi there ~
I understand your concerns and believe that you might have a urinary tract infection
or/and a sexually transmitted disease
. The most likely cause of your pain is epididymitis
. You need to get a urinalysis
as well as culture and sensitivity if your urine is positive for infection as well as, a screening test for sexually transmitted infections to rule out the same. If any of them are positive, there are specific medications that need to be used. Obviously, you need to consult a qualified doctor. You may want to treat your pain in the meanwhile, with available over the counter analgesic
medications. I hope this helps.
Take care and have a lovely day!