IP
Posted: 26 Oct 2015
Hi
I would like to see the IP of the client (to determine the location of the user), any ideas?
I would like to see the IP of the client (to determine the location of the user), any ideas?
Design SharePoint forms with tabs, complex tables, accordions, sub-lists, and 3rd party columns
https://spform.com/forum/
Code: Select all
$.ajax({
url: "http://freegeoip.net/json/"
}).then(function(data) {
console.log(data.ip); //data contains other things, like country, latitude, longitute, etc
});
Code: Select all
$('head').append('<script type="text/javascript" src="http://l2.io/ip.js?var=myip"></script>')
Code: Select all
alert(myip);