How to debug “Vagrant cannot forward the specified ports on this VM” message

后端 未结 13 2715
时光取名叫无心
时光取名叫无心 2020-12-25 10:33

I\'m trying to start a Vagrant instance and getting the following message:

Vagrant cannot forward the specified ports on this VM, since they
would collide wi         


        
13条回答
  •  臣服心动
    2020-12-25 10:43

    As message says, the port collides with the host box. I would simply change the port to some other value on the host machine. So if I am getting error for

    config.vm.forward_port 80, 1234
    

    then I would change it to

    config.vm.forward_port 80, 5656
    

    As 1234 might be used on my host machine.

    For actually inspecting ports on any machine, I use the tcpview utility for that OS and get to know which port is used where.

提交回复
热议问题