Error on MulticastSocket.joinGroup()

*爱你&永不变心* 提交于 2019-12-20 06:23:59

问题


I'm trying to execute a simple example of Multicast sockets on Java.

 MulticastSocket s = new MulticastSocket(6789);
 InetAddress group = InetAddress.getByName("230.1.1.1");
 s.joinGroup(group);

This code generates the error: IP_ADD_MEMBERSHIP failed (out of hardware filters?)

Any idea?


回答1:


Some Windows machines can experience this when the DHCP Media Sense feature is enabled (it is by default). To address this you may need to disable HDHCP media sensing as described here: http://support.microsoft.com/kb/239924.

It may also happen if the network interface does not support multicast. VPN interfaces are notorious for this.

Also, try to disable TCP/IP filtering: Local Area Connection Properties > Internet Protocol > Properties > Advanced > Options > Properties > Disable "Enable TCP/IP Filtering".



来源:https://stackoverflow.com/questions/2534551/error-on-multicastsocket-joingroup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!