How can I get relief from ankle pain?

Depends. There are too many sources of ankle to pain list here. The treatment and the ability to control it would depend on an accurate diagnosis and workup. See a foot and ankle specialist for the right plan.
Ankle Pain. The only way to get relief....Is to first, find out the cause....Only then, can you get a solid answer.... Causes of ankle pain are to numerous to list here. See a specialist, get an exam, possibly and x-ray and mri...Maybe even blood work.... Find the cause and you will find the answer..
Nsaids. Nsaids like Ibuprofen or Naproxen help reduce inflammation, which may be cause of the pain. If the pain is from recent trauma, ice and elevation can help. If the pain continues, it is important to see your doctor for an evaluation.