Read ip from request headers for proxied requests.