Hi Takashi

Thanks for the prompt response. I am a bit new to GAE development and using 
JAVA for the server side code.

I found only Python examples of how to use HTTP_X_APPENGINE_COUNTRY 
variable.

Do you have a sample code of how to access it using Java?

Thanks
gena

On Friday, 31 May 2013 00:46:06 UTC+2, Takashi Matsuo (Google) wrote:
>
>
> Hi gena,
>
> No need for any external service for determining the country. App Engine 
> does it automatically.
> Please refer to the following environment variables:
>
> HTTP_X_APPENGINE_COUNTRY
> HTTP_X_APPENGINE_REGION
> HTTP_X_APPENGINE_CITY
>
> Enjoy!
>
> -- Takashi
>
>
> On Thu, May 30, 2013 at 3:25 PM, gena <[email protected] 
> <javascript:>>wrote:
>
>> Hi all,
>>
>> In my GAE hosted application I am trying to determine the country of the 
>> user using my app.
>>
>> My server side code uses "this.getThreadLocalRequest().getRemoteAddr()" 
>> to determine the client IP, which in many cases returns an IPV6 value. 
>> Unfortunately IPV6 is not handled well by "location mapping services" e.g. 
>> http://www.hostip.info/
>>
>> Is there any way to instruct GAE to return only IPV4 values?
>>
>> Thanks
>> gena
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/google-appengine?hl=en
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Takashi Matsuo | Developers Programs Engineer | [email protected]<javascript:>
>  

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to