在网络上定位设备的最佳方法是什么?

发布于 2024-07-14 08:53:11 字数 211 浏览 3 评论 0原文

我正在为一家销售硬件设备的公司构建软件。 他们希望该软件能够定位网络上的所有设备,而不限制其 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

似狗非友 2024-07-21 08:53:11

您可以研究构建零配置网络的各种方法。

You could look into the various methods of constructing zero configuration networking.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文