• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Country code or name - Use IP address ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Country code or name (From: Simon Stapleton <email@hidden>)

  • Prev by Date: Re: Pseudo-tty as piped to NSTask -- help?
  • Next by Date: [Slightly OT]:Software Update app & "inactive" items
  • Previous by thread: Country code or name
  • Next by thread: Re: Country code or name
  • Index(es):
    • Date
    • Thread