简体   繁体   English

在 iOS swift 5 中获取设备列表及其主机名和 ip

[英]Get the list of devices with their hostnames and ip addresses on LAN in iOS swift 5

I am trying to get the details of connected devices on Local Area Network like Fing or iNet .我正在尝试获取局域网上连接设备的详细信息,例如FingiNet I have tried some libraries: MMLanScan or LAN-Scan and got IP addresses but couldn't get the hostnames.我尝试了一些库: MMLanScanLAN-Scan并获得了 IP 地址,但无法获得主机名。 Please share if anyone has gone through this before.如果有人以前经历过,请分享。 Thank you.谢谢你。

I am providing here answer to this question though it is sort of late response, you may get those information via this repository LAN-Scanner github我在这里提供了这个问题的答案,虽然它有点迟到了,你可以通过这个存储库LAN-Scanner github获得这些信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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