Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Windows Server 2008 on the latest version of Sun Virtual box. I have some web sites hosted in the Windows Server virtual machine.

How can I access the websites hosted on the virtual machine from the host machine? Currently, the network adapter is set to work in NAT mode.

Thanks in advance.

share|improve this question
up vote 3 down vote accepted

I don't recommend using the NAT mode, prefer the Bridged mode that will make the VM acts like a real PC on the network or the Host-Only for a closed network (don't forget to configure the "host" on the same network on the host-only), then you'll just have to go to the IP of your server in your browser ;)

share|improve this answer

You need to set up a bridge connection in your VirtualBox

Then on windows you need to install microsoft webmatrix

Run this as an administrator and it'll allow you to setup your bridged IP address instead of local host under settings on the webpage.

ps. remeber to either add webmatrix to the windows firewall or shut the windows firewall off.

share|improve this answer

If you set the virtual addaptor to bridged mode this will give the virtual machine an IP address from your DHCP server (if you have one). try giving the host a static IP of and the guest (subnet mask and see if you can ping between them. Also note bridge mode is not the same as host-only so you will need to have it connected to a network for this to work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.