Thanks for your query.Based on the facts that you have posted it appears that you have pain in lower abdomen neal umbilicus
. and treated with medicines
Now you have pain in your spermatic cord
.The pain that you had earlier may be not due to ulcer but most likely to be due to infection of the spermatic cord.
Please take broad spectrum antibiotics along with anti inflammatory medication like Diclofenac
twice daily .
Get the prescription of medicines from your family Physician.
With this treatment this will get cured within a week