Modify reset script to work in prod.
Account for forwarded requests when getting IP.