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

Here's my setup:

I'm developing a website on a mac. I created a virtual host, so I can open up my browser, type http://cpp and it will point to the right directory.

I want to test this website out in IE. So I fired up Windows 7 in a vm (Virtual Box). Obviously, typing in http://cpp in IE will not work.

What do I need to do in order to view this virtual host from Windows 7?

NOTE: The fact that it is a virtual host is important. I have scripts in there that refer to the document root. That is, the site is hosted at ~/Sites/cpp, but typing in http://localhost/cpp will break my scripts.

Here's the output from ipconfig:

enter image description here

Here's the screenshot of my network settings:

enter image description here

share|improve this question
Did you try adding an entry to your Windows hosts file that points cpp to the host's IP, and is the host visible from inside the VM (i.e. did you bridge the networks?)? – user3463 Jul 22 '12 at 5:47
The network is bridged. I know how to add the host such that cpp maps to but how to I get it to access the vhost? – jessh Jul 22 '12 at 5:51
Well, if you did it all correctly, you should be able to go to http://cpp (or http://cpp.local) from Internet Explorer. – user3463 Jul 22 '12 at 5:56
Still not working out. Would you mind taking a look at the output of my ifconfig and the network settings? : – jessh Jul 22 '12 at 7:10
Can you add a screenshot of the hosts file from Windows, please? – user3463 Jul 22 '12 at 17:58

SOLVED! Just needed to run ipconfig when in NAT mode. Saw that inet address was (Apparently this is the norm for mac HOST IP addresses)

Edited my windows host file such that pointed to cpp.

share|improve this answer

You must log in to answer this question.

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