Application's graphical user interface is implemented in the class TraceroutePane. The application offers user to enter IP address or hostname and to select network interface used for originating ICMP packets.
The applications accepts commands in the following format:
<host> [ ping ]
where optional keyword ping (following the host name) indicates to application to perform ping instead of trace route.
ICMP packets are sent and received in a separate worker thread Traceroute.run() instantiated from the class Traceroute. User can stop trace route at any time by pressing "Cancel" button (the thread will be stopped gracefully).
One can alternatively start application from the os command line with parameters:
java -jar traceRoute.jar [ <host> [ ping ] ]
where the default is to trace route and not to ping.
The jar file of the package can be found here.
Source files: