Thank you for putting up your problem to Healcare Magic!
Did you have such pains in the past also? A pain in groin and at tip of penis can be a referred pain
from ureteric stone and may be associated with a few drops of blood discharge when it is called a strangury
Urine routine examination shows red blood cell in it and ultrasound
abdomen is the investigation of choice.
The serious things need to be ruled out first. As such, such a pain might be due to a constant posture while riding bike which results in muscular strain and the pain is self limiting.
You can get OTC ibuprofen
for pain relief.
I hope this information would be both informative and helpful for you