Fly in virtualbox on windows

I’m having some issues connecting from a VirtualBox Ubuntu machine on Windows 10 host & WSL Ubuntu to Concourse using fly to setup a target, it seems to not be able to connect, it throws me an error:
could not reach the Concourse server called remote:
get https://concourse.mydomain.com/api/v1/info: dial tcp: i/o timeout
is the targeted Concourse running? better go catch it lol

I tried to telnet on port 443 and I’m successful.
I can setup targets from windows host’s command prompt, but I was hoping to be able to set it up from Linux. We are running concourse with fly 4.2.4
I’m not sure how to further troubleshoot this issue. Any assistance would be greatly appreciated.

try

curl -i https://concourse.mydomain.com/api/v1/info

from inside the VM

if that’s still failing, it’s not a fly issue

Are you able to successfully reach the endpoint from elsewhere?

Thanks for the tip.

So from my Windows host I can reach it properly. From the VM and WSL I can’t connect.

Curl -i command you specified returns the following info within the VM:

HTTP/1.1 200 OK
Content-Type: application/json
X-Concourse-Version: 4.2.4
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Xss-Protection: 1; mode=block
Date: Tue, 30 Jul 2019 14:05:58 GMT
Content-Length: 43

{"version":"4.2.4","worker_version":"2.1"}

Maybe concourse.mydomain.com is resolving to an IP address that isn’t reachable from within the VM/WSL? Or maybe firewall rules are getting in the way? :thinking: