Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

up vote 2 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

I'm not sure what "pissedoff" is trying to do here...but anyhow...

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 192.168.2.2 and the guest 192.168.2.3 (subnet mask 255.255.255.0) and see If you can ping between them. Also not 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

You need to set up a bridge connection in your VirtualBox

Then on windows you need to install microsoft webmatrix http://www.microsoft.com/web/gallery/install.aspx?appid=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

Your Answer

 
discard

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.