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 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.


curl -i

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


Maybe 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:

You’re correct @vito

This is a really weird behaviour, and because I was working via VPN, the WSL was picking up 2 different DNS & nameservers one from my local network and one from my employers network. This was confusing fly. I updated /etc/resolv.conf file to only search one DNS and nameserver and that fixed my issues. Thank you all for your tips and suggestions.