Obtaining the http clients IP address

23 views
Skip to first unread message

System Mirror Admin

unread,
Feb 24, 2021, 4:16:48 PM2/24/21
to google-appengine-go
When request.RemoteAddr is invoked, it returns a 169.254.0.0/16 address. Is there another way to get the clients IP address? Other load balanced environments I've worked with add it as an HTTP header. Does Google do the same?

chaom...@insightech.com

unread,
Feb 24, 2021, 5:12:52 PM2/24/21
to google-appengine-go
You can get the client IP from header X-Forwarded-For. Details are here: https://cloud.google.com/appengine/docs/flexible/go/reference/request-headers
Reply all
Reply to author
Forward
0 new messages