Thanks for your query.Based on the facts that you have posted it appears that you have developed Ballanitis with Urethritis
involving terminal urethra
.Get your routine test done .Take antibiotics like Doxycycline along with some Urinary antiseptics like Nitrofurantoin
Clean your glans
and tip of the urethra with warm water.Get prescription of these drugs from your family Physician.
It should get cured within a week.