Skip to content

Instantly share code, notes, and snippets.

@mptrs
Created October 17, 2012 13:29
Show Gist options
  • Save mptrs/3905529 to your computer and use it in GitHub Desktop.
Save mptrs/3905529 to your computer and use it in GitHub Desktop.
jQuery: Get client ip
$.getJSON("http://jsonip.appspot.com?callback=?", function (data) {
alert("Your ip: " + data.ip);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment