How can I get devices connected to the same wifi network?

I need to get all devices names which are connected to same wifi.

I tried NetServiceBrowser, in netServiceBrowser(_ browser: NetServiceBrowser, didFind service: NetService, moreComing: Bool) function I get some devices name like Macbook or iPad with search service type of browser.searchForServices(ofType: "_services._dns-sd._udp.", inDomain: "local.") But in this service type I cant get iPhones.

I'm not sure if this is the right way, which framework should I use to accomplish this? Am I on the right track? What permits do I need to get?

I need your help. Best regards.

I need to get all devices names which are connected to same wifi.

Why do you need to do this?

Because I am working on ISP company and they want to show all connected devices on same network to their users.

You won’t be able to do this using Bonjour. The issue is that most Apple devices [1] don’t advertise any Bonjour records unless there’s software on the device that’s actually listening for incoming network connections.

See the discussion on this thread.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Historically the Mac was an exception here. I’m not sure whether we’ve changed that recently.

How can I get devices connected to the same wifi network?
 
 
Q