Skip to content

Instantly share code, notes, and snippets.

@jswhisperer
Created May 30, 2013 07:02
Show Gist options
  • Select an option

  • Save jswhisperer/5676163 to your computer and use it in GitHub Desktop.

Select an option

Save jswhisperer/5676163 to your computer and use it in GitHub Desktop.
JS: Get IP clientside
function() {
$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
function(data){
alert( data.host);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment