Empty reply from server - can't connect to vagrant vm w/port forwarding
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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