Access localhost on VirtualBox IIS
iis, networking, virtual-machine
Solution
Shutdown firewall, that's why it is not accessible from host. Use the IP address you get inside the guest, 192.168.2.24
Problem
I am hosting a virtual machine (Windows 7) on my machine via VirtualBox. I am using a bridged connection to my host laptop. I am attempting to access `localhost` on the VM from another machine on the network. When I use `ipconfig` from my host machine I get: ``` Ethernet adapter VirtualBox Host-Only Network: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::9538:86c4:59e3:a43f%23 IPv4 Address. . . . . . . . . . . : 192.168.56.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 ``` When I try to access `192.168.56.1`, I am unable to load the page. I can ping `192.168.56.1` and get a reply, but I am not sure if this is the correct IP address to use. I have also attempted to use the IP address from my guest machine (VM) ``` Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::9538:86c4:59e3:a43f%23 IPv4 Address. . . . . . . . . . . : 192.168.2.24 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.2.1 ``` but I am unable to get a reply when ping the `192.168.2.24` from my host. Any suggestions here?