However, it depends on how your tornado server is setup. If your
tornado server is behind an nginx proxy, then you'll have to make sure
this line is set:
proxy_set_header X-Real-IP $remote_addr;
Refer to the example nginx configuration for the exact details.
Otherwise, if you're using another proxy, then you'll have to make
sure it passes the client's ip address in the X-Real-IP header.
-Kelvin
proxy_set_header X-Real-IP $remote_addr;
http_server = httpserver.HTTPServer(application, xheaders=True)