How to get client ip address with jQuery


/ Published in: JavaScript
Save to your folder(s)

How to get client ip address with jQuery


Copy this code and paste it in your HTML
  1. $.getJSON("http://jsonip.appspot.com?callback=?",function(data){
  2. alert( "Your ip: " + data.ip);
  3. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.