Thanks for your query.Based on the facts that you have posted it appears that you have undergone hernia repair
surgery 6 weeks back and now feeling uncomfortable in lower abdomen and testicle on the same side.
There is handling and dissection of the spermatic cord
during surgery which results in to post operative inflammation giving rise to these symptoms.
Take some anti inflammatory medication like Diclofenac
or Serropeptidase to reduce the inflammation along with some antacids.
It should get cured in a week.