I'm trying to access a website on a vagrant box (Laravel Homestead) through port 8000 on my host but it always gives the ERR_CONNECTION_REFUSED error on Chrome and IE.
I have tried multiple setups, change host and guest configs (NIC's, firewalls, etc.) but I'm getting desperate! I know I pulled it off in a Windows 7 machine some time ago but now I can't remember how I did it.
Anyway, I'll try my best to describe my current home network if it helps. I have two routers A and B. Router A is the ISP's router and has the DHCP service (192.168.1.50 - 192.168.1.254) and firewall in medium settings. Router B is in my bedroom and connects with router A through ethernet cable. It has DHCP off and the gateway is the IP of router A. My host machine can connect via ethernet or wireless to router B. On the routers side I've only tried to disable the firewalls with some settings I tried.
My host machine is running Windows 8.1 64 bit and the guest OS is Ubuntu Server 14.10 64 bit. The vagrant box configured the NIC's for me. NIC 1 is NAT with various port forwarding configs (notably ssh->2222->22, tcp8000->8000->80). NIC 2 is Host-only with IP address 192.168.10.10, subnet mask 255.255.255.0.
Everything works fine (SSH) until I try to access the already configured website through port 8000 in the host's browser (http://192.168.10.10:8000). It always gives that error.
I checked Virtualbox's configuration (initially vagrant or virtualbox has a bug where the IP of NIC 2 was incorrectly set as 192.168.10.1, which I corrected after but still no gain). I've tested with different subnet mask (255.255.0.0). I've disabled all router firewalls, checked Windows's firewall too. I've googled this all over the place. Tried different private network IP's. I've edited the etc/network/interfaces config file on the guest, tried troubleshooting or checked: iptables, route -n, netstat -rn... Ping does work from host to guest and vice-versa. But telnet 192.168.10.10 8000 from host machine says the connection was refused.
I even tried to disable my wifi and connect my machine through ethernet cable although, and correct me if I'm wrong but, my home network should not have anything to do with this situation right?
I'm really starting to lose hope on this, it's getting really frustrating!
Any help will be most welcome!