Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get ip

$.getJSON("https://api.ipify.org/?format=json", function(e) {
    console.log(e.ip);
});
//Not included in the source, "api" can be changed to "api6" for IPv6
//addresses.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #ip
ADD COMMENT
Topic
Name
5+6 =