Problem in listening to multicast in multihomed Linux server

Posted by Lior on Super User See other posts from Super User or by Lior
Published on 2011-02-27T12:20:44Z Indexed on 2011/02/27 15:27 UTC
Read the original article Hit count: 329

Filed under:
|
|

I am trying to write a multicast client on a machine with two NICs, and I can't make it work. I can see with a sniffer that once I start the program the NIC (eth4) start receiving the multicast datagrams: y.y.y.y. (some ip) -> z.z.z.z (multicast ip, not my eth4 NIC IP) UDP Source port: kkk (some other port) Destination port: xxx (multicast port)

However, I can't get those packets using my program (listening to port xxx on eth4).

I also added: route add 224.0.0.0 netmask 240.0.0.0 dev eth4

Searched the web for some examples/explanations, but it seems like I do what everybody else does. Any help will be appreciated. is there anything else to do with route/iptables?

© Super User or respective owner

Related posts about linux

Related posts about configuration