从电线发送到无线时,UDP多播不起作用

发布于 2025-02-04 08:08:41 字数 237 浏览 2 评论 0原文

我通过C ++实现了UDP多播,这很好。

但是奇怪的是,我在笔记本电脑(无线)和PC(有线)之间进行测试问题。 使用同一网络,笔记本电脑通过路由器通过Wi-Fi连接,并且PC通过有线LAN连接。

由于我的测试,如果我将多播数据包从PC发送到笔记本电脑,则不会正确接收它。 相反,当将多播数据包从笔记本电脑发送到PC时,收到了很好的收到。

代码使用相同的代码,因此似乎没有编码问题。

为什么网络像这样工作?

I implemented UDP Multicast through C++, which works very well.

but Strangely, I have a problem testing it between my laptop (wireless) and my PC (wired).
using the same network, the laptop is connected via Wi-Fi through the router, and the PC is connected via a wired LAN.

as a result of my test, if I send Multicast packets from PC to laptop, it will not be received properly.
Conversely, when a Multicast packet is send from laptop to PC, it is received well.

code used the same code, so there seems to be no coding problem.

Why is the network working like this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文