If the problem continues after the first six months of birth, it needs to be removed surgically. But it is only treated in the way of surgery if it is causing discomfort to the patient.
clicksor.net

There are two ways of Hydrocele treatment:

Surgical Excision: in it, the surgeon makes the incision in the scrotum. Sometimes, it is also done in the lower abdomen to remove the Hydrocele. Most of the surgeons also remove it while discover during surgery.

Needle Aspiration: it is the way through which the surgeon dries fluid in the scrotum by using needles. It is preferable for the patients who cannot undergo the surgery.

Best Is Cedical for Hydrocele Herbal Treatment by Herbal Care Products at Home : herbal-care-products.com/hydrocele