Skip to Main Content

New to Java

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!

get ip address and show in browser

807600Sep 6 2007 — edited Sep 6 2007
Hi,
ive been trying out how to get the IP address or computername of the host machine using applets. I get the correct result if I run it in the appletviewer,but once i embed it in an html file and run it in a browser,I always get the localhost/127.0.0.1 result.Is this a security issue of using applets.

Hope you can help me in this one..I've tried different approach but I still get the same result.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2007
Added on Sep 6 2007
7 comments
333 views