Super User is a question and answer site for computer enthusiasts and power users. 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 Oracle VM Box and created a Virtual machine. Now I have hosted(in IIS) a website in the virtual machine. I want this website to be browsed in the host machine's browser.

Can anybody let me know the settings needs to be configured.

share|improve this question
up vote 3 down vote accepted

Make sure the "network card" on the virtual machine is set to use bridged mode. This will give it an IP on the same subnet as your host machine.

Eg. If your host machine is, the virtual machine should get 192.168.1.X. This can vary depending on your network setup, but that's the usual case.

I figure you've already done these two, but you should also make sure your web server is set up to accept requests that did not originate from itself (localhost/, since the server views the host as a separate machine.

And lastly, make sure Windows' firewall or any other firewall you have running on the VM is configured to allow the web server to accept incoming connections.

share|improve this answer
Can you plz provide me any step by step procedural links, as I am week in networking issues. – suryakiran Dec 14 '11 at 4:03
I have set the same, but Host machine IP and VM IP are not matching. BTW I am connected to the internet and IP for the host is dynamic(Not static IP). Please help me. – suryakiran Dec 14 '11 at 8:11
Your internet connection shouldn't affect this. Assuming you're not on dialup, your physical machine (the host) should have an internal IP address (within your local area network). The VM and host IPs should not match exactly, but if you have the adapter in bridged mode, they should both be on the same subnet, with the fist 3 parts of the addresses matching, but not the last. If your host is and the VM is, putting in your host's browser should work.If the IPs are not on the same subnet, there might be some other problem on your network. – Vickash Dec 14 '11 at 20:12
Also, check which port your server is running on. Web servers traditionally use port 80. I'm not familiar with IIS, but it may be configured to use a different port number by default in a development environment. If it's running on a different port, such as 8080, you'll have to put into the browser. – Vickash Dec 14 '11 at 20:14

With bridged network mode I lost internet connectivity in my guest.

Instead I used NAT mode with port forwarding.

This is an example where Apache hosts websites in the guest:

enter image description here

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .