Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

The RequestState Class

Stay organized with collections Save and categorize content based on your preferences.

The RequestState class requests state information about a request via the following properties:

remote_host
Remote host name where the request originated.
remote_address
IP address where the request originated.
server_host
Host of the server in which the service resides.
server_port
Post from which the service has received the request.