Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 netmask 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?

share|improve this question
Question related to this was already moved to stack overflow,… – Olli Feb 27 '11 at 12:31
yeh, I want to make sure my Linux configuration is fine. thx. – Lior Feb 27 '11 at 12:55

Easiest way to debug this is to run tcpdump on correct interface. If you can receive packets using tcpdump, then your setup is working fine, and problem is with your code.

Programming related questions should go to Stack Overflow (also wait for answers to your previous question).

share|improve this answer
as I said, tcpdump shows the packets received by multicast IP, not my eth4 NIC static IP. is that how should I see it? shouldn't tcpdump show the packets arriving to my NIC static ip? – Lior Feb 27 '11 at 12:54
Sorry, I missed that from your question. Yes, that's how it should work. You receive multicast packets to multicast IP, not to your own IP address. – Olli Feb 27 '11 at 13:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .