• 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: Determining current IPv4 WiFi address of iOS device?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining current IPv4 WiFi address of iOS device?


  • Subject: Re: Determining current IPv4 WiFi address of iOS device?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 09 Oct 2013 17:45:33 +0100

On 9 Oct 2013, at 16:08, Jens Alfke <email@hidden> wrote:

> I thought of this but was unable to find the API for getting the .local hostname. (Maybe I used to know but have forgotten.) Where is it?

I was under the impression that NSNetService.hostName would give you the name once -netServiceDidPublish: was called.  Alas, that doesn't work.  It seems you have to create a second service from the name/type/domain of the first (wait until -netServiceDidPublish: is called to get valid results) and then resolve that.

It's annoying that this is so hard.  On the Mac you can get this info from System Configuration framework, but not on iOS.

<rdar://problem/15187283>

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Determining current IPv4 WiFi address of iOS device?
      • From: Josh Graessley <email@hidden>
References: 
 >Determining current IPv4 WiFi address of iOS device? (From: Jens Alfke <email@hidden>)
 >Re: Determining current IPv4 WiFi address of iOS device? (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: Determining current IPv4 WiFi address of iOS device? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Determining current IPv4 WiFi address of iOS device?
  • Next by Date: Re: Determining current IPv4 WiFi address of iOS device?
  • Previous by thread: Re: Determining current IPv4 WiFi address of iOS device?
  • Next by thread: Re: Determining current IPv4 WiFi address of iOS device?
  • Index(es):
    • Date
    • Thread