void leaveMulticast(InternetAddress group, [ NetworkInterface interface ])

Leave a multicast group.

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

Source

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