In this post based on experience, I wanted to share the difference between a medical problem you could have with your genitals or that it might just be muscles. Luckily, I've experienced my hip muscles hurting, which comfised me with genital pain or testicle pain. There can be correlation. If you're feeling genital pain and you're dealing out, just know the symptoms before you call your doctor, it could be minor or it could be fatal. Here are some genital problems I've read along with symptoms men get. These source back to WebMd, MayoClinic, or you can look up articles on gov't health sites. The tips on muscles is from my knowledge.. The medical problems I lost below mostly consist of similar symptoms.
Stds, urinary tract infection, anything urinary, bacteria related, urethra, etc:
Blood will be in your urine, experienced pain while urinating or ejaculating, testicle swelling, bad discusting discharge, etc.
Prostate inflammation or prostatitis:
Swollen prostate, painful urination or ejaculation, the urethra and/or prostate will have bacteria backed up into those parts. The bladder sits on the prostate. Also keep in mind that anal sex can cause a man's prostate to go bad for those who do that. My guess is the bacteria still coming from the anal, not a smart thing to do!
Testicle torsion:
One of your testicles will be higher than the other and the spermatic cord will get twisted, cutting off circulation. They could turn blue, this can be fatal. Must seek attention if it's too much to bear. Could ruin fertility.
Just muscles:
Now all those problems listed above will cause more pain than muscles will. So if it's muscles, this include hip flexor muscles like the iliacus that's in the iliac fossa but definitely the inguinal ligament on either side. It stretches down the pelvis and into each ball sac. Which was my issue. It pulled on the left testicle and caused strain. My testicles could have been strained in general too. Or very well be a inguinal hernia. Part of the intestines would poke out the abdomen though. When you're not used to strenuous work or activity or outdoor work, this happens. Bending over can also flex the ligament and the hip muscles, hence "flexors." Any hip action or even sit ups! Anything to flex the ligament or flexors. It can even be related to the adductors such as the adductor brevis or pectineus. The brevis is perfectly angled toward the pubic symphysis. So you can have pubic pain. The cases are more in soccer players & such though.
Treatments for the inguinal ligament/muscles. Using a frozen water bottle from the freezer. Lining it up with the ligament and the testicles. In your underwear, briefs, etc, to feel the cold more or on top of your underwear. The ligament can't be anymore stretched like the adductors or hip flexors. Take pain meds like NSAIDS, etc.. Take it easy, don't bend over. If it's not as swollen, you can try doing all planes of motion. Kick the whole thigh/leg forward, backwards & side to side. To loosen up the hip.