When I try to run "curl wttr.in" I get this:
curl: (7) Failed to connect to 192.168.49.1 port 8282: Connection timed out
.
Firewall is disable (ufw -> innactive), how can I fix that? I have the latest version of curl (curl 7.47.0 (x86_64-pc-linux-gnu)), So far I couldn't find wttr.ini conf files. Appreciate some help. Vladi
The problem is that you have some wrong configuration in your local ~/.curlrc (probably a proxy server). It tries to connect to the proxy server instead of wttr.in, and the server is not reachable (
connection timeout
).That's also the reason why it works when you are using
sudo
: because your root user does not have this misconfigured.curlrc
in its home directory (/root
).Of course, you do not need root rights to use
curl
.To check my conjecture, just increase the verbosity level, while doing the query:
You will see that the client is trying to connecting to the proxy server.