Hi welcome to HCMForum. It may be ectopic testicle or an inguinal hernia
. more chances are there for inguinal hernia, the testicle if not in the sac it will be in the abdomen. if one testicle is out side it will be sufficient for fertility
. if both are in side it should be brought to the sac as early as possible.
I advise you to consult a surgeon for diagnosis and treatment, if it is hernia and started to cause agonising pain it also should be immediately operated.
Wishing for a quick recovery, and thanks for calling.