JAVA: Receiving multicast UDP datagrams in sockets with same port and different IP multicast, in IPv4, but not in IPv6 -


the problem have java program open multicastsocket same port, , later invokes joingroup(multicast address). each socket have differente multicast address.

the machine has enabled ipv4 in interfaces.

the behaviour receive multicast messages althoug ip destination different socket opened(the socket have same port).

on other hand, if enable ipv6 in interfaces, message same port received in socket have ip destintation + port.

example:

intefaces ipv4:

socket a: ip(224.0.0.3)+port(28200)

socket b: ip(224.0.0.2)+port(28200)

i send multicast message port(28200), , ip destination(224.0.0.3).

result: receive message in both sockets.

if change machine interface's ipv6, receive message in socket a.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -