解决方法
这里有一个iOS局域网扫描仪
https://github.com/mongizaidi/LAN-Scan
你也可以看看bonjour
https://developer.apple.com/bonjour/index.html
Bonjour,also known as zero-configuration networking,enables automatic discovery of devices and services on a local network using industry standard IP protocols. Bonjour makes it easy to discover,publish,and resolve network services with a sophisticated,yet easy-to-use,programming interface that is accessible from Cocoa,Ruby,Python,and other languages.