Share this page 

Get the client IP address (deprecated)


With modern java plugin installation, only "127.0.0.1" is displayed.

The only reliable way is to get this information from the server-side.

[Netscape only]

<SCRIPT>
var ip = new java.net.InetAddress.getLocalHost();
var ipStr = new java.lang.String(ip);
document.writeln(ipStr.substring(ipStr.indexOf("/")+1));
</SCRIPT>