Common causes for. Swelling behind the ear are dermoid cyst, lipoma, sabaceous cyst and lymph node. Diagnosis can be done by clinical examination and fine needle aspiration cytology. Usually pain indicates infection. You may need to take antibiotics and painkillers for few days
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment if required