Thursday, January 15, 2015

What is my IP using JavaScript

<!DOCTYPE HTML>
<html>
<head>
<title>What is my IP?</title>
</head>

<body>

<script>
  var clientIP;
</script>

<script src="http://l2.io/ip.js?var=clientIP"></script>

<script> 
  document.write("Your IP is: ", clientIP);
</script>

</body>

</html>

No comments: