Thanks for writing in.
Your pain can be due to a muscle spasm or an infection or a renal stone. If you have other symptoms like increased frequency of urination, getting up to urinate at night, discharge from the penis or any ulcer/swelling, then I suggest you see your physician. I wouldd suggest that an ultrasound
of the kidney ureter
bladder region be done to localize the cause.
If the above is not true, then a spasm in the muscle could be the cause. You can use hot fomentation and tablet Diclofenac
50 mg as and when required (upto 3 tablets a day).
Hope this helps.