You’ll need to reference the actual IP address for the VM as well as the HTTP port that the individual site container is listening on. This isn’t shown in the Local GUI, but you can use the docker-machine
and docker
commands that are bundled with Local to get that information.
The general gist is that you can list out the local-by-flywheel
machine to get the IP that it is on for your laptop, and then use docker
to list out the details fo the ports that are in use.
Here’s what that process looks like for me:
For reference, here’s the output from my terminal session in case you want to copy/paste things:
benjamin:~/
$ alias docker-machine='/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine'
benjamin:~/
$ eval $("docker-machine" env local-by-flywheel)
benjamin:~/
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
local-by-flywheel * virtualbox Running tcp://192.168.94.100:2376 v18.06.1-ce
benjamin:~/
$ alias docker='/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker'
benjamin:~/
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bd24b471d8ba local-router:1.1 "nginx -g 'daemon ..." 6 minutes ago Up 6 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp admiring_nobel
dca3d1469c9b flywheel:1.3.2 "supervisord" 2 weeks ago Up 6 minutes 0.0.0.0:4012->80/tcp, 0.0.0.0:4013->443/tcp, 0.0.0.0:4015->1080/tcp, 0.0.0.0:4014->3306/tcp suspicious_kare
benjamin:~/
$ ssh -R 80:192.168.94.100:4012 serveo.net
Hi there
Forwarding HTTP traffic from https://fenum.serveo.net
Press g to start a GUI session and ctrl-c to quit.
HTTP request from 76.115.187.209 to https://fenum.serveo.net/
I still think that you will likely run into other headaches trying to share this sort of tunneled connection, and would recommend that sites that are meant to be actively collaborated on should probably be pushed to a development or staging server so that changes are available to everyone in a reliable manner.
As you can see in my screenshot, there are a bunch of assets being blocked due to the SSL certificate not covering the Serveo domain, so it’s not really an “out-of-the-box” solution.