Solved

Applet and trace route

Posted on 2002-04-05
5
234 Views
Last Modified: 2010-03-31
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.
0
Comment
Question by:llewelm
  • 3
  • 2
5 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 6921042
have you tried InetAddress.getLocalHost().getHostAddress()?
0
 
LVL 1

Author Comment

by:llewelm
ID: 6921063
Yes.  This returns "127.0.0.1", the "localhost" address.  I need the actual IP address.
0
 
LVL 18

Accepted Solution

by:
bobbit31 earned 200 total points
ID: 6921756
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 6921768
also, can you use serverside scripting (cgi/servlets)?

if so, then you can have your applet get the traceroute from there.
0
 
LVL 1

Author Comment

by:llewelm
ID: 6925100
This was exactly what I needed.  Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question