There are no drugs available to treat adult hydrocele, although pain medication may help relieve any discomfort. Surgery may be needed to repair/drain a hydrocele if it causes pain, if there might be an infection, or if the hydrocele becomes too large.