Java Network Traffic Generator
Jump to navigation
Jump to search
External
- https://docs.oracle.com/javase/tutorial/networking/datagrams/broadcasting.html
- https://docs.oracle.com/javase/8/docs/api/java/net/MulticastSocket.html
Internal
Overview
A Java program sends multicast socket using DatagramSocket and listens for multicast traffic with MulticastSocket.
GitHub
User Manual
Listen for multicast:
java -jar multicast.jar listen <network-interface-name> <multicast-address>:<port>
The network interface name is one of those returned by ip addr.
Send multicast:
java -jar multicast.jar send <network-interface-name> <multicast-address>:<port>
The network interface name is one of those returned by ip addr.