Java multicast socket behaviour on linux distribution (2.6.18-8.el5 )
My problem is exactly similar to the one described in http://community.jboss.org/wiki/PromiscuousTraffic;
that is , if I have two multicast socket that is bound to same port but joining different multicast group it ends up receiving traffic from both on Linux distributions;
In other words two different multicast groups with same port will receive packets from both groups, this behaviour happens on RHL distribution 2.6.18, However, on Windows XP professional version 2002 sp3, it behaved correctly.
Expected behaviour is that multicast traffic for only joined group is received . For example
S1 binds to port 2000 and joins multicast group 22.214.171.124
S2 binds to port 2000 and joins multicast group 126.96.36.199
then the expected behaviour is :
S1 should only receive datagram send to group 188.8.131.52 .
Can anyone please help me in finding a solution for this in Java, is there any distribution of Linux kernel you may have come across that would work as expected.
Or could it be a Java bug, Any input is very much appreciated .