Country code or name - Use IP address ?
Country code or name - Use IP address ?
- Subject: Country code or name - Use IP address ?
- From: Thomas Treyer <email@hidden>
- Date: Fri, 12 Sep 2003 22:16:35 +0200
I need to be able to at least guess the current user's country (not
timezone, that's not specific enough, or language, that doesn't work
either).
Hi Simon,
maybe you can use the IP address. First, your application needs to
request Internet access from the user. Second, determine the real IP
address, if the user is behind a NAT router. Third, look up the domain
address to get the owner of the domain or the ISP. Last, make your
conclusion from the owner/ISP to the country.
Or just ask the user. This seems to be the most simple way.
Thomas Treyer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.