Getting the location of the server

Getting the location of the server by using request.env['REMOTE_ADDR'] or request.ip instead of request.env['SERVER_ADDR']