Determine IP of IoT device in iOS app

Hello, I’m trying to make an app for my iOT speaker. The speaker connects to the iOS app in the hotspot mode and requests the app to send the local wifi settings. After sending the settings of the Wi-Fi to the speaker, I need to determine a way to find out the IP address of the speaker. I have the MAC address of the speaker but I need some network scanning mechanism to determine the IP address of the speaker. If anyone has done anything of similar nature please let me know.

Thanks

Replies

The best solution here is to implement Bonjour [1] on your speaker. You’ll then be able to find it using any Bonjour API, for example,

NSNetServiceBrowser
.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

[1] This is an Apple marketing term for the following Internet standards: