first, edit your web server’s httpd.conf (for example, /Applications/MAMP/conf/apache/httpd.conf) and add a VirtualHost with some name other than “localhost” (we do this because windows may reserve localhost for some of its services).
edit leopard’s “hosts” file:
sudo nano -w /etc/hosts
and append your new host name to the existing line for localhost:
127.0.0.1 localhost yourhostname
now, launch windows in your virtualization software of choice (virtualbox is great, and free), create a new batch file (local.bat) on your desktop, and paste this in:
essentially, this will shortcut the process of determining the host’s virtual network addresses and a way to modify the windows “hosts” file, should we need to change it in the future.
take note of the gateway address in the command window, and add it to the “hosts” file already open in notepad.
make sure you have your web server running in your host OS, then try to visit http://yourhostname/ in a web browser in your guest OS… welcome to the wildly efficient world of cross-browser, cross-platform testing on the same machine!