Relieving hernia pain can be done by taking over-the-counter pain medication, using comfort measures such as massages and cool cloths, maintaining a good diet and healthy weight, and laying down flat on your back. You may also find relief through the use of ice packs. Speak to your doctor if your symptoms persist.