Currently I have a guest VM running Ubuntu 18.04.1 LTS, with an Nginx server running on port 80 & 443. This is port forwarded to 8080 and 8443 on the host OS.
Result of using wget to connect to Nginx from guest VM:
Code: Select all
wget "http://localhost/" --> works
wget "http://127.0.0.1/" --> works
wget "http://[::1]/" --> works
Code: Select all
wget "http://localhost:8080/" --> works
wget "http://127.0.0.1:8080/" --> works
wget "http://[::1]:8080/" --> Connection refused.
wget -6 "http://localhost:8080/" --> Connection refused.
Note, I did initially provision this VM via Vagrant, but this seems to be more an issue at the VB level?
In the VB port forwarding dialogue
Code: Select all
Protocol Host IP Host Port Guest IP Guest Port
-------- ----------- ---------- --------- ---------
TCP 127.0.01 2222 22
TCP 8080 80
TCP 8443 443
Code: Select all
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 2711 root 4u IPv6 26305 0t0 TCP *:http (LISTEN)
Code: Select all
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
VBoxHeadl 77727 userx 17u IPv4 0xac95ec5790dd279d 0t0 TCP *:http-alt (LISTEN)