Skip to content Skip to sidebar Skip to footer

Can Datagramsocket Receive Multicast Packets

I have a code that runs in a thread, which i use to send a DatagramPacket to broadcast address of each NetworkInterface in the computer and also to a multicast group. It is as foll

Solution 1:

Can DatagramSocket receive multicast Packets

No, because it can't join the multicast group.

You didn't ask, but for completeness:

Can DatagramSocket send multicast Packets

Yes.

Can MulticastSocket receive datagram (non-multicast) packets

Yes.

Post a Comment for "Can Datagramsocket Receive Multicast Packets"