Use remote_ip instead of remote_addr

On Heroku we have no choice and have to use
the former despite the fact that it is
easily spoofable.