Is it possible to get the ip address of the user (visitor of my website) without using server side language like PHP?
I have a problem while using the server language (PHP) because of load balancer for my server. I tried http_x_forwared_for that is also not retrieving the perfect ip address.
Try this:
$.getJSON("http://smart-ip.net/geoip-json?callback=?", function(data){
alert(data.host);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With