X-AppEngine-Country at times returns ZZ

337 views
Skip to first unread message

Irene

unread,
Nov 5, 2014, 1:27:02 AM11/5/14
to google-a...@googlegroups.com
I m using  X-AppEngine-Country to get client country but some times its returning ZZ . Is there any way to get the exact country code for each and every request.

Thanks! 

Satyanarayana Govindachandra

unread,
Nov 5, 2014, 4:46:54 AM11/5/14
to google-a...@googlegroups.com
App Engine determines this code from the client's IP address". So they actually look at an IP from where the connection was made.

'ZZ' is often used to denote 'Unknown or unspecified country'

If your using Proxy, Since  proxy sits between the client and AppEngine, AppEngine sees connections coming from proxy IP. 


On Wed, Nov 5, 2014 at 11:57 AM, Irene <ireneclare...@a-cti.com> wrote:
I m using  X-AppEngine-Country to get client country but some times its returning ZZ . Is there any way to get the exact country code for each and every request.

Thanks! 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.



--
Thank you
Satya
Message has been deleted

Vinny P

unread,
Nov 6, 2014, 1:18:19 AM11/6/14
to google-a...@googlegroups.com

On Wed, Nov 5, 2014 at 12:27 AM, Irene <ireneclare...@a-cti.com> wrote:
I m using  X-AppEngine-Country to get client country but some times its returning ZZ . Is there any way to get the exact country code for each and every request.


As Satyanarayana said, "ZZ" is code for unknown country. You might want to star this issue to follow up: https://code.google.com/p/googleappengine/issues/detail?id=5296

But if you want to try geolocating the IP address using different sources, you can try using a proxy service such as Cloudflare: https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-CloudFlare-IP-Geolocation-do- or an API: http://freegeoip.net/
 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Reply all
Reply to author
Forward
0 new messages