Re: Determining current IPv4 WiFi address of iOS device?
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