Epididymitis is often caused by an infection. Treatment is with antibiotics, and anti-inflammatory and pain medicines. Read on for details on how to care for yourself or your child at home.