I’m confused. Are you trying to discover:
The former is not possible is the general case. QA1942 iOS Wi-Fi Management APIs has all the details hear.
The latter really depends on what protocols your accessory speaks. I recommend that you build your access to support Bonjour [1] in which case you can discover it using high-level APIs like NSNetService. If you can’t do that then you’ll have to write your own discovery code, and the mechanics of that completely dependent on the protocols the accessory supports.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
[1] Specifically: