• 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: Keary Suska <email@hidden>
  • Date: Wed, 12 Sep 2012 08:39:41 -0600

On Sep 12, 2012, at 12:56 AM, Tamas Nagy wrote:

> 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.

NSHost is not likely what you are looking for. It is basically an Objective-C wrapper for C functions such as gethostbyaddr(). If you want to inspect the network interfaces of a Mac you probably want to use the System Configuration frameworks: http://developer.apple.com/library/mac/#documentation/Networking/Conceptual/SystemConfigFrameworks/SC_Intro/SC_Intro.html

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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


  • Follow-Ups:
    • Re: Getting local IP of Wi-Fi device
      • From: Tamas Nagy <email@hidden>
References: 
 >Getting local IP of Wi-Fi device (From: Tamas Nagy <email@hidden>)

  • Prev by Date: Re: autosavesInPlace and Core Data (was: and sandbox)
  • Next by Date: Re: Getting local IP of Wi-Fi device
  • 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