I'm trying to use a command line tool for a scheduler we have installed at my company, and decided to install it in my WSL ubuntu installation. However, I can't seem to connect to the server...
curl "[server]" --verbose * Trying [server:443]...*TCP_NODELAY set*connect to [server] port 443 failed: Connection timed out
I would assume something is up with either the server's firewall or my Windows firewall... except:
- I can run the exact same curl command from CMD in windows (on the same machine) and connect
- I can run the same curl command from WSL to any common secure website (say, https://google.com) and it connects
I also figured it could be certificate related, but it doesn't seem like I get to the certificate part of the connection (and again, works fine from Windows, and I didn't do anything special there). I've tried the server's IP in case it was DNS-related, as well. Ping works fine, and I verified port 443 is correct.
Is there an Ubuntu firewall in WSL that I need to separately deal with, which could be allowing traffic to some sites and not to others? Other similar issues seem like when they're firewall related, ping doesn't work either and/or they have the same issues on Windows as WSL/Ubuntu.
I'm on Windows 10 (version 1909) and WSL 2 (Ubuntu 20.04.3 LTS/focal). I'm on a (Corporate) VPN.