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.