(Java) Finding the multicast IP that a datagram was sent to
In my application I have one MulticastSocket that joins 40 multicast IP addresses (On the same port).
When receiving a datagram, is there a way to find the specific Multicast IP that a it was sent to ?

The same question about the new "DatagramChannel" (in Java 7), that also support multicasting.

Thank you very much !
(Java) Finding the multicast IP that a datagram was sent to
===

In my application I have one MulticastSocket that joins 40 multicast IP addresses (On the same port).
When receiving a datagram, is there a way to find the specific Multicast IP that a it was sent to ?

The same question about the new "DatagramChannel" (in Java 7), that also support multicasting.

Thank you very much !