I wanted to get a IP address from the front end devices. I found this free API called IPINFO.io
As per the documentation to get the IP address using Jquery all I need to do is:
$.get("https://ipinfo.io", function (response) {
console.log(response.ip)
}, "jsonp");
However, I get:
net::ERR_ABORTED 429
I am running this locally using Nodejs. The server does not matter because I am not sending a request to my Nodejs server.
However, if I paste the same code in a codepen with the same jquery version as the one that I have in my Nodejs project it runs just fine.
Why am I getting this error only when I use it over localhost?