Get proper remote ip address. Proxy makes 127.0.0.1 the value of REMOTE_ADDR.