Vagrant has stopped forwarding ports properly, stumped and need fix

49 views
Skip to first unread message

Karl Brown

unread,
Sep 30, 2015, 4:34:46 PM9/30/15
to Vagrant
Currently using:
Windows 7 x64
Vagrant 1.7.4 (recently reinstalled following ports breaking)
Virtualbox 5.0.4 (recently reinstalled following ports breaking)
IIS/Windows Firewall are disabled

I have the following port forward command:

conf.vm.network 'forwarded_port', guest: 80, host: 8888, auto_correct: true

I have confirmed via vagrant ssh that internally port 80 is still serving the proper website via 

wget localhost:80 

returns the correct index.html. However,

wget localhost:8888

Does not. Instead, I get Connection Refused. In a browser on the host I get ERR_CONNECTION_REFUSED

This was working yesterday so I am puzzled as to what might have broken. I have tried:
- Deleting the browser cache
- Executing the following Windows commands:
netsh winsock reset
netsh winsock reset catalog
netsh int ip reset reset.log
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log
ipconfig /flushdns
then Reboot

- Reverting to known working source code
- Reinstalling the programs
- Disabling IIS and Windows Firewall

To name a few things. Anyone have any ideas?

Sean Bollin

unread,
Oct 2, 2015, 2:00:25 PM10/2/15
to Vagrant
you're checking 80 on the guest and checking 8888 on the host right?
Reply all
Reply to author
Forward
0 new messages