Parallels 9 and MAMP 3.x – Virtual Host Setup

Personal Web Developer Logo


MAX Website Design Logo
Recently I started using a Virtual Machine on my Macbook Pro. I considered a few options such as Bootcamp, VMware Fusion and Parallels. After getting feedback from people in the know I decided to use Parallels. My goal was to test local sites I was building in Internet Explorer. I had been using an online service for this function but I decided that it was time to test my projects live on my own computer to speed up the process.

After downloading and installing parallels I tried connecting to my virtual host… Oooops. For some reason it didn’t initially click that though both operating systems were on the same machine, they were two separate entities. “No problem,” I thought, “I’ll just turn on my file sharing and I’ll be good to go right?” Wrong.

After perusing many sites and forums I wasn’t much further than I had been hours prior. So, for the sake of wasting any more of your time (or mine), here’s how to set up your Parallels VM so that you can view your Mac’s virtual hosts in Internet Explorer on your Parallels platform:

How to Set Up Parallels 9 and MAMP 3 – Virtual Host

1. Parallels toolbar – Devices > Network 1 > Configure: Set it to “shared” and then restart your virtual machine: Parallels toolbar – Virtual Machine > Restart

2. Get your Mac’s IP address: Apple icon in top left corner > System Preferences > Network: Your IP address should be shown where your internet connection shows Connected. If not, click Advanced > TCP/IP, and use your IPv4 address.

3. Open your Windows ‘hosts’ file c:\windows\system32\drivers\etc\hosts (note: first you will have to change permissions for this file in order to edit the file: Right click it, select Properties, then Security tab and go ahead and give yourself full control over the file (read/write/modify, etc)). Add the following:

“[your IP address from step 1] yourvirtualhostexample.com” (without quotes/brackets)

Type in yourvirtualhostexample.com in Internet Explorer and you should now be able to see your project!

I hope this has helped save you some time. Parallels is a great tool, I only wish this was clearly posted on their website or forums when I first started using it.

Comments (3)

Did everything above.
MAC IP: 192.168.1.14
Network 1: Shared network
Document root: [user]/Localweb/
etc/hosts: (added) 192.168.1.14 localhost
adding “localhost” in IE only a regular Google comes up.

Hi Martin,

This reply is probably too late, but localhost should already be handled within DNS itself (as indicated in the etc/hosts file on your Windows machine). To be honest, I’ve never tried to work with just “localhost” because I have multiple projects going on at the same time and MAMP allows you to set up many hosts so I usually set them up like dev.exampleproject.com:8888 (use port 8890 for https). That makes it really easy when I upload a site, I just have to remove the “dev” from all of the instances in the database.

With Internet Explorer adhering to industry standards more with each iteration I find I don’t really need to test as much with IE in a Windows machine (that and many easy online tools to use to test in IE).

Sorry I’m not much help in this regard, but if you still want to pursue this, then try setting up individual hosts within the MAMP control panel and then follow the instructions above.

I actually need Windows only for website testing in IE. On my localhost, there are about 30 projects. None of them is accessible via Parallels. I am not skilled enough to dig in settings mentioned above. So I probably stop worying about IE and keep testing only in browsers running on MAC.

Leave a comment

You must be logged in to post a comment.