Perhaps these will work for you:
I think this one only works in IE...
Code:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
var ip = '';
alert("Your IP address is "+ip);
window.defaultStatus = "Your IP address is "+ip;
document.write("<title>Your IP address is "+ip+"</title>");
</script>
</head>
<body>
<p align="center">IP Address In IE</p>
</body>
</html>
This one only works in Netscape...
Code:
<html>
<head>
<title>IP Address In Netscape</title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
if ((navigator.appVersion.indexOf("4.") != -1) && (navigator.appName.indexOf("Netscape") != -1)){
ip = "" + java.net.InetAddress.getLocalHost().getHostAddress();
document.write("Your IP address is " + ip);
}
else {
document.write("IP Address Is Only Displayed In Netscape!");
}
</script>
</body>
</html>
Hope this helps~!