Hello Turbogearers,
I am trying to get the remote hostname of the browser, and everytime
it returns an IP (i.e the same with remote_addr). Anything I am missing
here. This code was tested in my hosting which is webFaction.com .
My test code to replicate the issue is below:
@expose()
def testRemoteHost(self):
return_str = "Time is" + time.ctime() + " \n"
return_str = return_str + ( "hostname: [%s] ip
address:[%s]" % ( cherrypy.request.remote_host,
cherrypy.request.remote_addr ) )
return return_str
Thanks!
-kevin
San Jose, CA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---