LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Bind succeeded but not receiving mulitcast packets (https://www.linuxquestions.org/questions/programming-9/bind-succeeded-but-not-receiving-mulitcast-packets-696980/)

deb1513 01-13-2009 07:45 AM

Bind succeeded but not receiving mulitcast packets
 
Hi,
I have a mulitcast client server program. I have added the interface to the
mulitcast group and also binded on that interface to receive mulitcast
packets. When the mulitcast packets arrive I am not able to receive
the mulitcast packets. This is happening when I do the bind to the
interface on which i want to listen. Instead if i do a bind on
INADDR_ANY, then I am able to receive the mulitcast packets.


Can anyone tell me the reason..'


Thanks in advance

Mara 01-14-2009 01:03 PM

I assume the packets are not addressed to the address you bind to. I hope this is clear enough. If not, just ask :)

deb1513 01-14-2009 10:22 PM

Hi Mara,
The Packets are destined to the same address and port where it is bind to. As the Destination address is a multicast address so the receiver can't bind his socket to that address. But it is binding to an IP interface where from it can receive the multicast address. But it is not able to receive any packet. I think now you understand what i m trying to say.

Thanks.

deb1513 01-14-2009 10:28 PM

Let me clear some few points, so to understand the scenario better,

1. Receiver is registered to a particular multicast address and port
sender is trying to send his message to that particular multicast address and port.

2. I have only one Ethernet Interface and i am binding the receiver's socket to that particular IP interface address.


All times are GMT -5. The time now is 11:15 PM.