Comments (4)
Found out that https://ifconfig.co/ip and https://icanhazip.com/ return ipv6. So i am removing them from the list in my script.
from public-ip.
Thanks for reporting this. However, I cannot reproduce this error: both sides show an IPv4 for me. We'd need to determine first why you're seeing different formats being returned by these websites.
from public-ip.
Furthermore: it those two sites are returning IPv6, that would still leave four votes for the IPv4. A tie implies that at least two of the requests to the other servers failed.
from public-ip.
I discovered that the problem occurred in a house with a router where ipv6 was supported. In that case, I guess the two links I mentioned in my first comment return the ipv6 instead of ipv4. Besides that, I do not know why, but I get three different ips when I run the .get() function successively. First I get an IP that looks like xxx.xxx.0.xxx, then I get xxx.xxx.100.xxx (0 changed to 100, rest of the IP is same), and then after more tries, the error that includes ipv6 in the message occurs (the one in the issue). Maybe the error is specific to where I live. Because now on public wifi, the .get() function runs just fine.
from public-ip.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from public-ip.