/ Published in: JavaScript
How to get client ip address with jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.getJSON("http://jsonip.appspot.com?callback=?",function(data){ alert( "Your ip: " + data.ip); });
$.getJSON("http://jsonip.appspot.com?callback=?",function(data){ alert( "Your ip: " + data.ip); });