I want to obtain the client/browser IP address to rate limit unauthenticated clients in my Google App Engine Standard/Go web app.
In the deployed app r.RemoteAddr
returns the empty string.
Enumerating through the request headers (r.Header [string][]string
) provides only the following entries.
Content-Length
X-Appengine-Citylatlong
X-Appengine-Region
Upgrade-Insecure-Requests
Accept-Language
X-Cloud-Trace-Context
X-Appengine-Country
X-Appengine-City
Host
Cache-Control
Origin
Content-Type
Referer
User-Agent
Accept
No IP addresses.
How do you obtain the client IP?