fixed request.remote_ip to env header values to get user ip to resolve issues with heroku