• 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
Re: [iPhone] get iPhone's IP address...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] get iPhone's IP address...


  • Subject: Re: [iPhone] get iPhone's IP address...
  • From: glenn andreas <email@hidden>
  • Date: Mon, 20 Jul 2009 08:48:19 -0500


On Jul 20, 2009, at 12:50 AM, James Lin wrote:

Hi all,

I found this code snipet that's supposed to return the iPhone's IP address.

I am wondering if anyone can confirm the method for me.
As i am told that this method works in an actual iPhone and not on the simulator.
But i won't have an iPhone until Aug 9th....

As others have mentioned, this code has problems. One major problem, however, is that there is no NSHost available on the iPhone (it'll work on the Simulator, but isn't supported on the iPhone).


You should visit devforums.apple.com - this issue has been discussed in detail and sample code that actually works can be found there...


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Mad, Bad, and Dangerous to Know

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >[iPhone] get iPhone's IP address... (From: James Lin <email@hidden>)

  • Prev by Date: Re: [iPhone] get iPhone's IP address...
  • Next by Date: Re: [iPhone] UITableView cell display bugs ?
  • Previous by thread: Re: [iPhone] get iPhone's IP address...
  • Next by thread: Re: [iPhone] get iPhone's IP address...
  • Index(es):
    • Date
    • Thread