Search code examples
pythongoogle-app-enginewebob

Remote User's hostname + App Engine Python


Similar to:

remote_addr - The remote user's IP address.

self.request.remote_addr

Instead, is there a way to get the remote user's hostname ? Something similar maybe like,

self.request.hostname

As from the official document, The Request Class, doesn't seem to have the option to get the remote user's hostname.

I'm trying to uniquely identify a machine, with the combination of hostname+ip, because there are some users may share the internet gateway, thus having same IP address is possible and that would make ip address not unique enough.

Any advice on this ? or at least, could anyone suggest alternative way to uniquely identify an machine with anonymous identity ?


Solution

  • I don't think this is possible over HTTP. Generally, cookies are used for this purpose.