Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the IP address of client using an applet

843807Oct 29 2002 — edited Oct 30 2002
Hi,

I developped an applet used by many persons.
I want this applet to show the users its IP address.
Why can't I get this IP address whith InetAddress.getLocalHosts().getHostAddress() ??? It allways returns localHost/127.0.0.1 !

Thanks in advance, Fr�d�ric.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2002
Added on Oct 29 2002
2 comments
126 views