Thanks for your query.Based on the facts that you have posted it appears that you have a impacted stone in the lower part of the Right Ureter
This stone might be in upper ureter earlier 36 hours back but has moved down and got impacted at Vesico Ureteric Junction( Junction of the Ureter with Bladder) giving rise to pain and irritation in penis.
Please get your Ultrasound
Scanning of the abdomen done to confirm the diagnosis.
Advice of a qualified Urologist
will be helpful to decide the mode of the further treatment.