Welcome to HCM,
Most probably you might have Hydrocele
giving you this problem.
There is another possibility of having Indirect inguinal hernia
where a part of intestine comes through hernial site into the scrotum
Physical examination by the surgeon will give correct diagnosis.
In both the conditions surgical procedure can sole your problem.
Ok and bye.