cloudfoundry-attic / cfdev

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit
Apache License 2.0
226 stars 64 forks source link

CF Login fails: Port 443 Connection Refused #11

Closed jallwrig closed 6 years ago

jallwrig commented 6 years ago
cf login -a https://api.v3.pcfdev.io --skip-ssl-validation
API endpoint: https://api.v3.pcfdev.io
FAILED
Error performing request: Get https://api.v3.pcfdev.io/v2/info: dial tcp 10.144.0.34:443: getsockopt: connection refused
ekcasey commented 6 years ago

Hi @jallwrig , you and a handful of other users have discovered issue in the alpha release of CF Dev. CF Dev attempts to forward 10.144.0.34:80 and 10.144.0.34:443 on the guest to 10.144.0.34:80 and 10.144.0.34:443 on the host. However, vpnkit does not have permissions to bind those privileged ports. The reason we didn't catch this issue sooner is that machines with Docker for Mac installed have modified configurations which makes this work.

If you don't mind installing Docker for Mac, you can do that to get the current alpha working. In the near term future we will be releasing a version of CF Dev that does not attempt to bind privileged ports. In the long run we may opt to take steps similar to Docker for Mac which will allow us to bind 10.144.0.34:80 and 10.144.0.34:443.

ssisil commented 6 years ago

Fixed in release v0.0.2