I use Windows 7 as a host OS. I have Debian 6.0.4 installed on VirtualBox with lighttpd.
I can easily access the web server from my machine by typing http://localhost
in the browser address panel but other computers from my network cannot access it by typing my IP address.
I use NAT port forwarding in VirtualBox.
What should I do to make my web server available for everyone on my network ?
EDIT:
I have came to a 'solution' – I have to set guest port and host port to different ones. But I still have problems with this, namely:
server is launched on port 8080.
Port forwarding : guest port 8080
host port 80
I can access the server form my machine both on
But I can only access the server from other machines on the network by IP:8080
Best Answer
One option is to change the network adaptor of the virtual machine to bridged mode; you should then be able to access the virtual server from the other machines on the network, by providing your guest's IP address.
Edit:
For practical aspects, look at the VirtualBox documentation on Virtual networking. Your options are to use bridged networking
or port forwarding:
So, in case of a NAT port forwarding, you should use the following command: