Thanks for query,
You might have some infection in penile urethra
causing this type of pain.
There may be infection in your prostate
Take plenty of water.
Take alkalizing syrup to make your urine alkaline.
Avoid fried,chillies and junk food.
for further investigations.
Ok and bye.