WAN IP : curl: (28) Operation timed out Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
naddel81
Posts: 94
Joined: Sun Jul 21, 2019 12:54 pm

WAN IP : curl: (28) Operation timed out

Post by naddel81 »

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!
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: WAN IP : curl: (28) Operation timed out

Post by Joulinar »

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.

Code: Select all

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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 94
Joined: Sun Jul 21, 2019 12:54 pm

Re: WAN IP : curl: (28) Operation timed out

Post by naddel81 »

so the error is not just my dietpi? will try again tomorrow.
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: WAN IP : curl: (28) Operation timed out

Post by Joulinar »

external server is back online. Just run dietpi-banner 1
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 94
Joined: Sun Jul 21, 2019 12:54 pm

Re: WAN IP : curl: (28) Operation timed out

Post by naddel81 »

working again, thanks!
naddel81
Posts: 94
Joined: Sun Jul 21, 2019 12:54 pm

Re: WAN IP : curl: (28) Operation timed out

Post by naddel81 »

is it possible to circumvent double NAT with this solution (asking a website for the external IP)?
User avatar
MichaIng
Site Admin
Posts: 2917
Joined: Sat Nov 18, 2017 6:21 pm

Re: WAN IP : curl: (28) Operation timed out

Post by MichaIng »

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/myip.php
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 :(.
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: WAN IP : curl: (28) Operation timed out

Post by Joulinar »

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

Code: Select all

dig +short myip.opendns.com @resolver1.opendns.com
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply