Networking >> Protocols >> TCP/IP >> Multicast >>  How to test IP multicast using JGroups java library

download jgroups.jar from http://jgroups.org

Assuming IP multicast address used is 224.10.10.10 and port is 5555 and all firewall rules are in place to allow connection from the sender machine and the receivers

 

On the receivers 

cd dir-where-you-have-jgroups.jar

java -cp jgroups.jar org.jgroups.tests.McastReceiverTest -mcast_addr 224.10.10.10 -port 5555

 

On the sender

cd dir-where-you-have-jgroups.jar

java -cp jgroups.jar org.jgroups.tests.McastSenderTest -mcast_addr 224.10.10.10 -port 5555

 

 Once connected, whatever you type in the sender will appear in all the receivers.