hi at all,
I have a dlink router as AP (without DHCP) behind my main router (fritz box) and the raspi with dietpi on it cannot check the IP:
“WAN IP : curl: (28) Operation timed out after 3000 milliseconds with 0 bytes received”
it get’s its IP through the main router (fritz.box) so it should be able to pull the wan IP. how can I fix this?
best wishes!
Hi,
looks like an issue outside DietPi. DietPi themselves get this information from https://ifconfig.co/json and this side seems to be off at the moment. Let’s wait if this is a temp issue.
This page (https://ifconfig.co/) is currently offline. However, because the site uses Cloudflare's Always Online™ technology you can continue to surf a snapshot of the site. We will keep checking in the background and, as soon as the site comes back, you will automatically be served the live version. Always Online™ is powered by Cloudflare
so the error is not just my dietpi? will try again tomorrow.
external server is back online. Just run dietpi-banner 1
is it possible to circumvent double NAT with this solution (asking a website for the external IP)?
If we knew an API of your router of ISP, it would be probably possible to get the WAN IP without an external website. But there is no generic method at least that we could use.
However, https://ifconfig.co/ has become unsuitable for other reasons as well. It applied a strict rate limiting, so using that banner and/or refreshing the DietPi-VPN status a few times makes it block your requests.
We have an own little script: https://dietpi.com/geoip
But it does not obtain geo information, which is quite interesting when being connected to a VPN, and its not as trivial to implement as printing the requesting IP
.
EDIT: Now it contains geo information
.
this will ask your external IP having a double NAT as well. Personally I’m running running a FritzBox behind a Speedport without issues. This is basically same as using a web site like https://www.whatismyip.com/
probably I misunderstood the question
BTW: running following will give your external IP as well, but yeah without geo information
dig +short myip.opendns.com @resolver1.opendns.com