• 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: Getting local IP of Wi-Fi device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting local IP of Wi-Fi device


  • Subject: Re: Getting local IP of Wi-Fi device
  • From: Tamas Nagy <email@hidden>
  • Date: Wed, 12 Sep 2012 14:35:25 +0200

NSHost addresses gives me an array with only one object, which contains the
IPv6 address.

2012/9/12 Kyle Sluder <email@hidden>

> On Sep 11, 2012, at 11:56 PM, Tamas Nagy <email@hidden> wrote:
>
> > Hello List,
> >
> > I'm looking for a way to get the IP address of the Wi-Fi device. For
> some reason, [NSHost currentHost]… gives me something like a MAC address,
> instead of an IP on 10.8.
>
> That's an IPv6 address. Congratulations, you have now learned that devices
> can have multiple addresses, and they can be of different types. That's why
> NSHost has an -addresses method that returns an array.
>
> What is your ultimate goal?
>
> --Kyle Sluder
_______________________________________________

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: 
 >Getting local IP of Wi-Fi device (From: Tamas Nagy <email@hidden>)
 >Re: Getting local IP of Wi-Fi device (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Getting local IP of Wi-Fi device
  • Next by Date: Re: autosavesInPlace and Core Data (was: and sandbox)
  • Previous by thread: Re: Getting local IP of Wi-Fi device
  • Next by thread: Re: Getting local IP of Wi-Fi device
  • Index(es):
    • Date
    • Thread