$.get("http://ipinfo.io", function(response) { alert(response.ip); }, "jsonp");