Solved

Applet and trace route

Posted on 2002-04-05
5
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

695 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