Access IIS on Windows7 VM from the Mac OS
Challenge
Developing both native and web application components targeted to different platforms can prove to be challenging for developers running the Mac OS and Windows VM on the same physical machine.
When developing a native iOS client application using Xcode on the Mac and an ASP.NET MVC web application using Visual Studio 2012 running on Windows Internet Information Services (IIS), I needed the ability to make a Web API call from Xcode’s iOS Simulator on the Mac to the IIS web application running on the Win7 VM.
With a few simple steps you can setup your Mac to allow http access between the Mac OS and the Windows VM to make development and testing much easier.
Solution
Windows7 VM (Parallels)
- From the Windows Control Panel, open up the Windows Firewall client.
- From the Firewall client, click on Advanced Settings and select Inbound Rules.

- Scroll down to the rule titled: World Wide Web Services (HTTP Traffic-In), right-click and select Properties.

- Set to Enabled.
- Open a Windows Command Prompt and type: ipconfig to get your current IP address.

Mac OS
- Use the current IP address when calling the web application URL within your iOS code on the Mac.

- Now you can access the IIS web server on the Win7 VM from any browser or web tool residing on the Mac.



















