Created
February 25, 2014 08:53
-
-
Save Plou/9205288 to your computer and use it in GitHub Desktop.
Get remote address of a user in Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.getJSON('http://jsonip.com/?callback=', function(data){ | |
| console.log('Your ip is: ' + data.ip); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment