Treatment depends on the underlying cause. Viral orchitis, such as that caused by mumps, is usually managed with supportive care, including pain relievers, rest, and ice packs. Bacterial orchitis requires antibiotic therapy tailored to the specific pathogen. In some severe cases, hospitalization may be necessary.