在网络上定位设备的最佳方法是什么?
我正在为一家销售硬件设备的公司构建软件。 他们希望该软件能够定位网络上的所有设备,而不限制其 IP 地址。
最好的方法是什么? 我认为硬件可以订阅“已知”多播地址,让软件向其广播,然后硬件就会回复。 这些设备和软件将驻留在同一个 LAN 上,因此我不担心多播被阻止。 我只是担心将来我会发现“已知”地址已被使用。 一旦我拥有了设备,我就不可能更改此协议。 请指教。
I'm building software for a company that sells hardware devices. They want the software to be able to locate all devices on the network without restricting either of their IPs.
What's the best way to do this? I'm thinking the hardware could subscribe to a "known" multicast address, have the software broadcast to it and the hardware would reply. The devices and software would reside on the same LAN so I'm not worried about multicast being blocked. I'm just worried that I'll discover that the "known" address is already in use in the future. It isn't possible for me to change this protocol once I've got devices in the wild. Please advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通用即插即用、Bonjour 或其他零配置网络技术。
Universal Plug and Play, Bonjour or other Zero configuration networking techniques.
您可以研究构建零配置网络的各种方法。
You could look into the various methods of constructing zero configuration networking.