void joinMulticast(InternetAddress group, [ NetworkInterface interface ])

Join a multicast group.

If an error occur when trying to join the multicast group an exception is thrown.

Source

void joinMulticast(InternetAddress group, [NetworkInterface interface]);