HowTo: use ASP.NET developments in VMWare & iPhone Simulator on a Mac

 

imageThose of you who are lucky owners of a Mac are able to register at the apple developer program for free and download several iPhone developer tools there. Also you can download a simulator for iPhone/iPad which probably works like a real iPhone/iPad. As ASP.NET developer I run Visual Studio in a VM. In my case VMWare Fusion. But how it´s possible to run my web application which is hosted in VM in the host system?

The Source Code is the same like the standard MVC Project type.

Windows configuration

Before you start you have to turn off the windows firewall.

VMWare configuration

The last step is to set the VMWare networkconfiguration to “Bridged”:

image

More about the subject Host System and network you will find here.

IPConfig/renew

After finishing it´s useful to get a new IP address from DHCP (nearly every router use DHCP by default). This is possible by the commando line order “ipconfig/renew”.

Now read the new IP Address with Windows and after this you are able to enter this on you Mac in every browser:

Doesn´t matter if you use Chrome with MacOSX:

image

The iPhone Simulator:

image

Or the iPad:

image

Debugging?

Possible! Breakpoints you define in VM will be put out if you, for example, enter the side with the iPad browser.

First Impression:

Generally this constellation works. If it´s always the best way to switch between VM and the simulator is the question. But of course it´s more comfortable than running a whole deployment.

If you don´t use VMWare Fusion can find the same settings in Parallels. I think both products are nearly the same anyway. Zwinkerndes Smiley

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Learn more about our team.

One Response

  1. Any idea how to get it to work for Web Services? Seems soo strange it doesn’t..

    Reply

Comment on this post

Recent Posts

  • Automated Security Analyser for ASP.NET websites

    Evil Hackers are lurking everywhere and many Web-applications are delicately and share “too much” with the attacker. A quick (first!) overview offers the Tool “ASafaWeb”. All the website does is making a few requests and writing an Analyses including problem solving’s. There are no permanent disadvantages (bad requests/ DoS attacks and so on). Example: KnowYourStack.com ...

  • image1489-570x194.png
    „Sign in with Twitter“ for your own ASP.NET WebApp

      “Sign in with Twitter” is a popular practice to authenticate the users on your website. One advantage compared to an own registration is the lower inhibition for the user. But on the other hand Twitter doesn’t fess up with all the information’s and you will get into a kind of addiction. At the end ...

  • image1485-570x194_thumb.png
    CodePlex is going to be updated

      CodePlex the Microsoft Open Source Project Hosting Plattform hasn’t changed that much in the last few years and for a few times I thought Microsoft stopped the whole developing process. But now I found out that there is still life in the project. Maybe it is because of the success of GitHub or because ...

  • image1474_thumb.png
    What does Adobe in the flash-free web? Magazine-Style Layouts with CSS Regions!

      Adobe is well known for Photoshop and Flash but of course there is a lot more. According to the “Future Post” from Google Adobe declared one of their big subjects on a Blogpost. I’m talking about the W3C Working Draft to CSS Regions. Adobe cooperates with the WebKit Team and W3C on this. What ...

  • image1471-523x194.png
    HTML 5 Games, Tooling & 3D

      Game Developing is an interesting subject for all kind of software developer. But as a web developer without any Flash-skills there aren’t that much starting points. With HTML5 and the combination between Javascript, CSS3 and fast browsers there are the first “robust” HTML5 games. HTML5 games? Is this real? Neowin created a “Top 10” ...

Support us