<script type="application/javascript"> function getIP(json) { // document.write("My public IP address is: ", json.ip); var ip=json.ip; document.getElementById('IPaddr').value = json.ip; } function LoadJsonDataFunction() { $.getJSON("https://api.ipify.org?format=jsonp&callback=getIP", function(obj) { $.each(obj.ip, function(key, value){ $("IPaddr").append(value.ip); }); }); } </script> // <script type="application/javascript" src="https://api.ipify.org?format=jsonp&callback=getIP"></script>
<input type="hidden" name="IPaddr" value="" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)