I'm looking for a way to do a traceroute client-side, i.e. in a browser.
Is the only solution to develop a browser plug-in ?
EDIT: I just found out that it has been done with a Java applet: http://www.codefromthe70s.org/traceroute.aspx
The bad news is that this applet requires to be signed code because it actually parses the output from the ping executable of the underlying client system. Because of this, the user is asked to allow the Java application to run, which is cumbersome.
More info here: http://www.codefromthe70s.org/traceroute_explained.aspx
I am still looking for a simpler solution if anyone can help.
EDIT 2: Thanks for your anwsers. I guess I'll have to go with Java then.
I wonder if NaCl ( http://code.google.com/p/nativeclient/ ) would support some kind of traceroute app.
At best you can do a server-side implementation and have the output sent to the browser. And even then, you most likely could not do it from an in-server process on a Unix box, as the web server is unlikely to be running as root. You'd have to execute the system ping and/or traceroute and redirect the output back to the browser.