Pain from stomach to bladder, sometimes even gets to testicles? What could it be?

It depends. Depending on other symptoms, it could be hernia, bloating or constipation.If its pretty hard mass, you should see your pcp and have it evaluated.