Inside my thigh next to my right testicle it is paininful swollen and hard to the touch its about a golf ball in siize hurts to touch?

Urgent care needed. See your doctor right away even better go to er to make sure you do not have torsion of testis , a surgical emergency , delay in treatment will result loss of testis.