User IP Address

This script allows you to show the user their IP address.  It's a easy script for you just need to copy the part from <SCRIPT> to </SCRIPT> and put it at where you want the IP address to appear.

Your IP address is 

Just add this script to where you want the IP to appear, in this example, I added it after the word "is ".

<SCRIPT>
<!--
//    Script Editor:   Howard Chen
//    Browser Compatible for this script: Netscape 2.0 or Higher
//    Get more JavaScripts at http://www.geocities.com/SiliconValley/Network/7432/
//    Bug report to hchen007@geocities.com
//    This script is free as long as you keep its credits
if (navigator.appName == "Netscape"){
address=java.net.InetAddress.getLocalHost();
ip=address.getHostAddress();
document.write(ip)
}
//-->
</SCRIPT>
This script works only when you are online, so after you put it on your HTML file, please get online before you view it. 

IMPORTANT: The scripts provided in this page are free as long as you keep the credits in the code.  E-mail me or use Script Rebuild Service for additional help about Cut N Paste or to ask for a script that is just for you.

Post Your Script Home