Test Multicast in Network



You will come across situation, where you need to identify if multicasting has been enabled or not. Sometimes, its disabled due to some security reasons and to avoid network traffic congestion.

Follow below steps to identify if multicasting enabled or not.

Run the following receiver command on the one server:
java -classpath /root/jgroups-2.11.1.Final.jar org.jgroups.tests.McastReceiverTest -mcast_addr 224.10.10.10 -port 5555

Once the receiver command blocks, simultaneously run the following sender command on another host:
java -classpath /root/jgroups-2.11.1.Final.jar org.jgroups.tests.McastSenderTest -mcast_addr 224.10.10.10 -port 5555

Now two applications should be able to connect and arbitrary lines entered on the sender should appear on the receiver.

Download: jgroups-2.11.1.Final.jar

No comments:

Post a Comment