Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rohitcp's avatar

Homestead vagarant up is not working on windows machine

Hi, Im geting this error i have changed port on yaml file but its not working.

https://docs.google.com/document/d/1TawKdea4m3gwIOlX7s0ZrgO6lI2MO7OD53qHx_F-FTE/edit?usp=sharing

C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/util/is_port_open.rb:21:in `initialize': The requested address is not valid in its context. - connect(2) for "0.0.0.0" port 8000 (Errno::EADDRNOTAVAIL)

0 likes
6 replies
cdubant's avatar

Unfortunately I don't have the answer but I remember trying desperately to install vagrant in the past. I've been using a soft called "Laragon" on my windows machine and ut works like a charm.

Just a thought ;)

svpernova09's avatar

This is a bug in Vagrant 1.9.3 on Windows. Add the line or downgrade back to 1.9.2. It's been fixed but waiting on a release of 1.9.4.

Osman's avatar

I had the same problem. If host_ip: "127.0.0.1" didn't work for you try doing it this way:

config.vm.network "forwarded_port", guest: guest, host: host, host_ip: "localhost", auto_correct: true

127.0.0.1 => Only listens on 127.0.0.1 0.0.0.0 => Error, does not work localhost => Listens on all interfaces

Please or to participate in this conversation.