What can i do about deep bone and muscle pain?

Ive had a reoccurring pain in the part where my leg meets my pelvis. It’s excruciating and it happens frequently. It usually starts to hurt after I do a lot of uphill walking or a lot of leaning forward.