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 09:55:42 +0100
On 8 Oct 2013, at 19:49, Jens Alfke <email@hidden> wrote:
> The test tool needs to be given a URL, so I want to display the URL in the main screen of the test app so it can be entered into the desktop tool. (I am not interested in hearing about mDNS/Bonjour based alternatives. They’re not what I need right now. Thanks.)
Actually, I disagree. As long as your server registers with Bonjour, the test app will be able to access the server via the device's .local name. This makes the URL <http://bruno.local./> rather than <http://192.168.1.17/>, which is a lot more pleasant for all concerned. The code to register the server with Bonjour is trivial, and it's certainly a lot more fun than the code that Remco posted (which is otherwise the correct answer, btw).
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