Answers for "js to take ip address"

1

javascript get ip

import("https://api.ipify.org?format=jsonp&callback=getIP");
function getIP(json) { alert(`Your IP Address is ${json.ip}`) }
Posted by: Guest on July-21-2021
0

javascript ip address

$.getJSON('https://ipgeolocation.abstractapi.com/v1/?api_key=<your_api_key>', function(data) {
  console.log(JSON.stringify(data, null, 2));
});
Posted by: Guest on March-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language