A warm bath or epsom salt bath works wonders at the time but i've always found the pain is even worse the next day every time i have a soak.
My best friend is the electric blanket, i couldn't live without it. Head to foot warmth, 24/7 if needed. Can be wrapped around legs while lying down and helps you to nod off to sleep if the pain makes it difficult.