Thanks for your query.Based on the facts that you have posted it appears that you have developed Perineal Abscess
.and looks likely it is in a stage of induration.
However this can be confirmed only on clinical examination to confirm the diagnosis.
Please consult qualified surgeon or Urologist
for clinical assessment and further treatment.
In the mean while can take broad spectrum antibiotics along with anti inflammatory medications .
Get prescription of these drugs from your family Physician.
It should get cured in a week failing which you may need to get it incise and drained by a general surgeon