Skip to content

Instantly share code, notes, and snippets.

@Plou
Created February 25, 2014 08:53
Show Gist options
  • Select an option

  • Save Plou/9205288 to your computer and use it in GitHub Desktop.

Select an option

Save Plou/9205288 to your computer and use it in GitHub Desktop.
Get remote address of a user in Javascript
$.getJSON('http://jsonip.com/?callback=', function(data){
console.log('Your ip is: ' + data.ip);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment