Reading Session Host in Pre-Process Script


Is it possible to access the host value of a user (the IP from which they called API to generate token) via a pre-process script?

I have the following pre-process script running, but the host value always seems to be the IP on which Dreamfactory is running, so perhaps I am misunderstanding.

url = 'http://address/api/v2/user/session
options = {}
options[‘headers’] = {}
options[‘headers’][‘Content-Type’] = 'application/json’
options[‘parameters’] = {}
options[‘parameters’][‘api_key’] = platform.session.api_key
options[‘parameters’][‘session_token’] = platform.session.session_token
result = platform.api.get(url, options)
data =
jsonData = bunchify(json.loads(data))
hostaddr =