I'm running werkzeug (as part of a Tilestache setup) inside a Vagrant VM, running ubuntu 'precise.'
In my Vagrantfile, I have:
config.vm.network :forwarded_port, guest: 8080, host: 8080
When I start the server in the VM, I see:
* Running on http://127.0.0.1:8080/
If I curl
that address from within the VM, I get the expected result. When I curl
it from the host machine, I get:
curl: (52) Empty reply from server
And Chrome says "No data received."
Troubleshooting info:
- The server responds to pings from the host machine
- a port sniffer verifies that the port is open
- running
netstat -ntlp | grep 8080
in the vm shows that the server is listening on 8080 - My local hostsfile doesn't have any weird conflicts
- I'm also forwarding 22 => 2222, and I can ssh in with no trouble
- I've disabled the firewall on the host, and i don't believe there's one on the guest (iptables and ufw are disabled, at least)
- I've set
auto_correct: true
in case there are conflicts (there aren't)
I know I could set up a private network, but I'd like to understand why this isn't working and how to troubleshoot it.
Any other ideas?