You have been diagnosed with epididymitis. This is an inflammation of a coiled tube called the epididymis that is located behind your testicle, inside the scrotum. The epididymis collects and stores sperm made by the testicles. Epididymitis is often caused by bacteria in the urinary tract or by bacteria passed between partners during sex. It can also be a complication of certain hospital procedures, or it can be caused by use of a urinary catheter. Here's what you need to do at home to care for yourself.