views:

43

answers:

1

Hello,

I am a web developer and my development platform is Mac. I have installed a copy of Windows XP in VMWare fusion for testing purposes and using IE for previwing my websites. I have Apache running on my Mac with several subdomains, like test.localhost etc.

How can I access the webserver on host OS from the guest OS?

Thank you in advance.

+2  A: 

VMWare Fusion registers an IP address on your Mac and you can use this to point to the host from the virtual machine. Find it with iconfig vmnet8. Mine's 192.168.36.1, yours might be the same.

If you're using apache virtual hosts and you try to get http from this address on your virtual machine, it will probably display the default apache page. You'll need to map the domains on your windows host:

Open C:\WINDOWS\system32\drivers\etc\hosts in Notepad and add your hostnames, 1 per line:

192.168.36.1    test.localhost

Then, when you put http://test.localhost/ in IE, it will route to your Mac's apache virtual host.

Andrew Vit