Find IP Address using Javascript

Posted by Prince | 1:22:00 PM | | 0 comments »


How to find IP Address using Javascript?
   I'm using an external tool to find the Ip address through javascript.If you want you can use this
<html>
<head>
<title>What Is Your Ip</title>
<script language="JavaScript">
<!--

 var ip_list {};
function 
FoundIp(ip, type) {
 // type: 4=ipv4 6=ipv6 0=unknown (autodetect)
if (type == 0) {
type 
4;
if 
(ip.indexOf(':') !-1) type 6;
}
ip_list[ip] 
type;
}

function MyIpIs() {
for(ip in ip_list) {
document.getElementById('myIp').innerHTML ip;

}
// -->
</script>
<script language="JavaScript" src="http://only-ip4.wimip.fr/ip.php"></script>
</head>
<body onload="MyIpIs();">
 <span>Your IP Address Is:</span>
<span id="myIp"></span>
</body>
</html>



Online Demo:
In this example I'm using an external tool to find the Ip address through javascript.If you want you can use this
Your IP Address Is:

0 comments

Related Posts Plugin for WordPress, Blogger...