问题描述
大家好
我尝试使用多播地址和端口,如224.1.2.3:12345。
我设法创建了监听器部分,为了使它能够与Windows 8及其多个网络板一起使用,我必须指定使用哪个网络接口。
如果我尝试使用ANYADDR ,我的程序没有收到其他PC发送的数据报。
但现在,我的问题是从Windows 8及其Hyper发送来自PC的数据报-V,我在那台PC上有多个网络接口。
在调用sendto之前,我已经尝试将我的传出套接字绑定到本地接口,但没有成功。
我也尝试设置SO_DONTROUTE选项,SO_BROADCAST。
你有什么想法吗?
Windows配置?
...
谢谢。
编辑:我禁用了其中一个Hyper-V虚拟网络接口以仅保留真实接口,但没有任何变化,我仍然无法向任何人发送多播数据报(甚至本身)
Hi everyone
I try to use a Multicast Address and port like 224.1.2.3 : 12345.
I manage to create the listener part, to make it worked with the Windows 8 and its multiple network board, I had to specify which network interface is used.
If I try to use the ANYADDR, my program is not receiving the datagram sent by the other PC.
But now, my problem is to send those Datagram from the PC with Windows 8 and with its Hyper-V, I have multiple network interface on that PC.
I already tried to bind my outgoing socket to the local interface before calling sendto without success.
I also tried to set SO_DONTROUTE option, SO_BROADCAST.
Do you have any idea ?
Windows Configuration ?
...
thanks.
I disabled one of the Hyper-V virtual network interface to keep only the "real" interface, but nothing change, I still cannot send Multicast Datagram to anyone (even itself)
推荐答案
这篇关于在具有多个网络接口的Windows 8 / 8.1上发送多播UDP数据报时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!