Making MAMP Pro domain names resolve in VMWare Fusion

I use MAMP Pro quite often to develop locally on my Mac. Getting VMWare Fusion to recognize my host names require jumping through a few hoops, but getting it working is key to getting my work done.

Here’s how I do it.

Set up MAMP Pro

Under Server, I set up my MAMP server to run on the default ports: Apache 80 and MySQL: 3306. Running Apache/MySQL as user can be set to either setting.

Under Hosts, I make my Server Name be whatever I’m working on, like “mytestsite”, for example and the Disk location will point to the directory that site lives in.

At this point, “mytestsite” should resolve in the local Mac browsers.

Set up VMWare

Now let’s turn to VMWare Fusion. My VMWare network setting need to be set to Bridged (Autodetect).

To be sure you can access the regular Internet from a VMWare browser, go look at some regular site on the Internet from your Windows installation. Good? Let’s move on.

Setting up your Windows “hosts” file

Now for the trick… You need to edit your “hosts” file in your Windows installation in VMWare. This requires a bit of jumping through hoops.

In your start menu, look for NotePad. It’s under All Programs > Accessories > NotePad. Don’t just click to open though, use a right-click to open it and choose “Run as administrator”. You will have to agree via a dialog box.

Now that you have Notepad open, select “File > Open” dropdown menu and search for your hosts file. It’s most likely path is like this:


You’ll need to add a new line to your hosts files for each of the “Server Names” you have in MAMP Pro. Each line will be your Mac’s local network address and the “Server Name”.

For example, my local IP address for my Mac is (I found this out in my System Preferences > Network preference pane.) My “Server Name” is “mytestsite”. This means I would add the following to the bottom of the hosts file in my Windows environment: mytestsite

Since you’re running Notepad as an administrator, you should be able to save your file and immediately see the results. Open Internet Explorer and visit “mytestsite” and you should see the site served from your MAMP Pro on your Mac.

Joy! Now you get to debug your site for IE.

There are no comments to this post.

Leave Your Comment:





your comment:

Remember my personal information

Notify me of follow-up comments?

Twitter Feed

John Morton talking on Twitter

Meanwhile on Instagram… //

My latest shot from Instagram.
Jazz history at the corner of 4th & Cooper Sq #nyc #jazz