I'm a male who's had constant pelvic and penile discomfort plus other related symptoms for around 5 years.
I recently started doing a simple exercise which I've found gives significant relief which has lasted. All it involves squeezing the knees together, holding for a while, then repeating a few times. It seems to have the effect of stretching/widening/loosening etc the lower pelvis and hip regions.
Of course, the cause of each person's pain is different so it might not work for everyone - indeed it might even exacerbate some people's symptoms, so go slowly at first.
You can experiment by doing it sitting, lying or standing; you can also put something in between the knees (such as a cushion) to create a different angle of leverage.
You can also do the reverse exercise, pushing the outside of your knees against something, which works on different areas of the hip and pelvis. I do this one lying in a bath tub.
I found a youtube video which might add to my explanation (note you can do this yourself, you don't need someone else like in the vid). I've posted this below.
I've also been applying DMSO gel externally to the perineum/anus region which could also have helped, although I couldn't say definitively.