Java MulticastSocket setLoopbackMode() Method

setLoopbackMode(boolean disable) is the method of MulticastSocket class. This method is used for setting local lookback of multicast datagrams.

Syntax

Parameter

disable - it returns true to disable the LoopbackMode

Throw

SocketException - This exception occurs while getting the value.

Example 1

Test it Now

Output:

Loopback mode : true




Latest Courses