'requested address is not valid in its context'
Opened this issue · 0 comments
hackjutsu commented
问题
在Windows上执行vagrant up
后,提示错误
requested address is not valid in its context. - connect(2) for '0.0.0.0' port 8080
分析
这是host ip的问题。参考另外一个Issue hashicorp/vagrant#8395 。
解决
在VagrantFile里添加上host_ip: "127.0.0.1"
, 把默认的0.0.0.0
改成127.0.0.1
config.vm.network :forwarded_port, guest: 8080, host: 8080, host_ip: "127.0.0.1"