dfx ping ic
can’t connect to ic whatever VPN on or off
Hi @honopu,
I just tried it myself and unfortunately cannot reproduce it. It would be great if you could provide more details. Could you please try the following command and post the output:
curl -v https://ic0.app/api/v2/status
Thanks a lot!
curl -v https://ic0.app/api/v2/status
- Trying 0.0.0.0:443…
- connect to 0.0.0.0 port 443 failed: Connection refused
- Failed to connect to ic0.app port 443 after 4 ms: Connection refused
- Closing connection 0
curl: (7) Failed to connect to ic0.app port 443 after 4 ms: Connection refused
It looks like DNS resolution doesn’t work. It might be blocked by your ISP/router. Can you please try the following commands and provide the output:
dig A ic0.app +short
dig A ic0.app @1.1.1.1 +short
dig A icp-api.io +short
dig A icp-api.io @1.1.1.1 +short
Just as an explanation of what we are doing:
- The boundary nodes are using both
ic0.app
andicp-api.io
. Trying both allows us to see if it doesn’t work in general or whether onlyic0.app
is affected. - When using
@1.1.1.1
, you will target the Cloudflare DNS resolver instead of your local one. This allows us to see if your DNS resolver does some filtering. - The
+short
just makes the output a bit nicer
Thanks for your help.
This is the output:
dig A ic0.app +short
dig A ic0.app @1.1.1.1 +short
dig A icp-api.io +short
dig A icp-api.io @1.1.1.1 +short
0.0.0.0
147.75.202.74
147.75.108.42
63.251.162.12
63.251.162.12
147.75.202.74
147.75.108.42
147.75.108.42
63.251.162.12
147.75.202.74
From what I can tell, your default DNS resolver is not resolving ic0.app
properly. This is either due to the router you are using or your ISP.
There are two things that you can do right now:
-
(recommended) Upgrade
dfx
to the latest version, as it is usingicp0.io
as a default domain for reaching the IC and notic0.app
. From your output, it looks like that will work for you. - Change your local DNS settings to use a different resolver (e.g.,
1.1.1.1
or8.8.8.8
). If you do this, all your DNS lookups will then go over that different resolver. So be cautious and only do it if you know what you are doing
For us, it would be great to know what ISP/router you are using to see if we can do something about it moving forward for you and other users. I understand if you don’t want to share that here in the forum, so feel free to send me a DM.
Thanks.I upgrade dfx
first.
It’s works.Thanks a lot.
Hi, I am faced with the same error when running dfx deploy, how can i solve this? . Updating dfx is not working for me
An error happened during communication with the replica: error sending request for url (http://127.0.0.1:4943/api/v2/status): error trying to connect: tcp connect error: Connection refused (os error 61)