简体   繁体   中英

How can i find all network devices without Bonjour?

I writing a mac application and i need to discover other Macs/PCs/iPhones/iPads connected to the same WIFI network.

Bonjour seems to be the most reasonable choice, but it turned out that it has problems on many types of routers (on mine for example, is not working as it blocks Bonjour services).

I just need to find iPs of devices, then i will try to connect to an application-specific port to determine if my process is running there.

What is the best approach to accomplish this task, without violating the App store Sandboxing?

ARP was the first answer which came to my mind. Does your network-setup allows this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM