Java MulticastSocket setNetworkInterface() MethodsetNetworkInterface() is the method of MulticastSocket class. This method is used for setting outgoing multicast datagrams sent on this socket. SyntaxParameternetIf - it is the interface ThrowSocketException - this exception occurs in the underlying protocol. Example 1Test it NowOutput: Network Inteface : name:lo (Software Loopback Interface 1) Next TopicJava MulticastSocket |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India