Applet and trace route

I have a Java applet running in a Web page.  If possible, I need to determine from within the applet the trace route that the user took to reach the Web site.

Further, it would be acceptable if I could just get the IP address of the client machine on which the applet is running.

I understand that applet security is likley to prevent this but any help would be appreciated.
LVL 1
llewelmAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
bobbit31Commented:
have you tried InetAddress.getLocalHost().getHostAddress()?
0
 
llewelmAuthor Commented:
Yes.  This returns "127.0.0.1", the "localhost" address.  I need the actual IP address.
0
 
bobbit31Commented:
also, can you use serverside scripting (cgi/servlets)?

if so, then you can have your applet get the traceroute from there.
0
 
llewelmAuthor Commented:
This was exactly what I needed.  Thanks.
0
All Courses

From novice to tech pro — start learning today.