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 |
I assume the packets are not addressed to the address you bind to. I hope this is clear enough. If not, just ask :)
|
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. |
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. |