Throws

Sets the outgoing network interface used by this socket. The interface used is the first
interface found to have the given address. To avoid inherent unpredictability,
new code should use getNetworkInterface() instead.

Throws

public
void
setLoopbackMode(boolean disable)

Disables multicast loopback if disable == true.
See IP_MULTICAST_LOOP, and note that the sense of this is the
opposite of the underlying Unix IP_MULTICAST_LOOP: true means disabled, false
means enabled.