def __get_client_address(self, environ):
        try:
            return environ['HTTP_X_FORWARDED_FOR'].split(',')[-1].strip()
        except KeyError:
            return environ['REMOTE_ADDR']
http://stackoverflow.com/questions/7835030/obtaining-client-ip-address-from-a-wsgi-app-using-eventlet
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/web/framework.py/Controller.__get_client_address