I want to know how to get client IP address using jQuery?
Is it possible? I know pure javascript can\'t, but got some code using JSONP from Stack Overfl
JSONP
A simple AJAX call to your server, and then the serverside logic to get the ip address should do the trick.
$.getJSON('getip.php', function(data){ alert('Your ip is: ' + data.ip); });
Then in php you might do:
$ip));