3

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

jshawl
  • 339

1 Answers1

0

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

Edited my windows host file such that 10.0.2.2 pointed to cpp.

jshawl
  • 339