0

How can I get the device name on deployed app with python?

I've already tried socket.gethostname() and platform.node() , but both are returning the machine name where the app is deployed , not the machine from where the app is reached.

The app is deployed on Heroku.

def sessions():
   userName = platform.node()

I've expected the userName to be for ex. 'Jonh-ThinkPad-A485' , but the userName is '046ee322-ee28-4a25-b789-ef005ac0e172'

0 Answers0