Dot Net Tricks

Articles about .NET, ASP.NET, C#, Object Oriented Programming and Agile Methodologies
Welcome to Dot Net Tricks Sign in | Join | Help
in Search

Software Theosophy

Mac OS X, Parallels and IIS

i have to admit that i am fairly easily influenced.  When I heard that one of the Codebetter.com people had successfully run Visual Studio 2005 using parallels, and all the raving i've heard about Macintoshs from my coworkers, and the fact that to run Visual Studio 2003 on Vista would require a virtual machine anyway, I decided to take the plunge.  I'd always been fascinated by the Mac OS X operating system, but it just didn't seem feasible until now.

$2800 later (thats WITH the student discount) i had a MacBook Pro.  I'm typing this article on it now.  I have to say that I'm even more impressed with it now.  Many of the windows annoyances are gone.  It runs a little slow when I'm running parallels, but not too terrible and i've heard things will be much smoother after another gig of RAM.  

I opted to install windows 2003 server instead of XP.  For one, i hate how XP will only allow you to create one website at a time.  (To get around that in XP, you can install IIS Admin)  I also think it makes more sense for your development OS to be the same as your production OS.  Every now and then, the jump from XP to Server 2003 or the different versions of IIS throws a curve ball.

The only thing that frustrated me was the networking.  There are three networking options in parallels, and I couldn't see how to get Firefox on my Mac to browse IIS websites on my parallels virtual machine.  It seemed like such a simple thing.  Turns out I was over analyzing and I'll give you my findings:

You basically have three options:

Shared Networking - In this option, you're windows instance has network access, but its almost as if your mac machine is acting like the router.  Your IP ends up like something like 10.211.55.x.  Use IPCONFIG to find your IP and then you can simply browse to it using the IP address: http://10.211.55.x/ and hit your  IIS sites.  This is probably the option you want in most cases.  As far as i can tell, other computers on your network CANNOT see your virtual machine, but your virtual machine can get out to the internet.  Its probably more secure.

Host Only Networking - This works fairly identical to shared networking except that your virtual machine cannot get out to the internet at all.  Your Mac can get to the virtual machine but thats it.

Bridged Networking - This option is really interesting.  Basically, your Windows Virtual machine shows up as a separate computer on the network.  Not only can your Mac get to (and it can get out to the internet) but other machines on your local machine can as well.  This is useful if you want others to browse to your computer to see website, enable UNC, etc.  In my case, my virtual machine's IP address shows up as 192.168.1.x.  But obviously, its probably 

In all these cases, you have to find your machine's private IP address in order to browse to it via your mac or other computers.  Just use IPCONFIG or the properties on the network connection.

Visual Studio 2005, Tortoise and SQL Management Studio all seem to run pretty well.  I've had a few times where VS.NET has crashed, but i'm not sure if thats related to my configuration of Windows 2003 Server, Parallels or both.   I still haven't installed VS.NET 2003 yet.  I'm hoping i can do without it and use MSBee to compile my .NET 1.1 sites on 2.0.  I'll let you know my findings.

Published Tuesday, April 17, 2007 9:15 PM by Fregas

Comments

 

Tony said:

HAHA You paid 2800 to run windows 2003 you dummy :)
April 18, 2007 1:33 PM
 

Fregas said:

Yeah, I know.  Its kind of silly in a way, being a Microsoft .NET developer and buying a mac.  But i'm also getting the Mac OS, which is nice for non-work stuff (email, web, photos, etc) as well as doing some Ruby On Rails and MySQL on the mac.  Its also forcing me to learn a little unix, which is something i've been meaning to do.  

When you starting your blog, Tony?
April 19, 2007 10:29 AM
 

Tony said:

I need to know what the hell I'm doing first :) I enjoy yours so keep up the good stuff (especially your responses to Survic)

-t
April 19, 2007 1:23 PM
 

Software Theosophy said:

Arbitrarily and without Robert H's consent, Andrew and i decided a couple of things the other day:We...
April 24, 2007 6:57 PM
 

Tony said:

Did you take that MAC back yet? You only have a few more days to get your refund...
May 11, 2007 12:33 PM
Anonymous comments are disabled

About Fregas

Craig is currently the Lead Developer in Fort Worth, Texas for Enilon Group, a web development firm. He has been programming since 3rd grade (using the Commodoore PET) and professionally for the past 7 years. He has written several articles for ASPToday.com and co-authored the book "Beginning Web Programming using VB.NET and Visual Studio .NET" Currently, his favorite programming language is C#, but he has programmed in Visual Basic, T-SQL, Ruby, ColdFusion, ASP 3.0/VBScript, ASP.NET, Javascript, Java and even Pascal. Besides programming, Craig is best known for his cooking and his somewhat offbeat sense of humor.

This Blog

Post Calendar

<April 2007>
SuMoTuWeThFrSa
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Syndication

Powered by Community Server, by Telligent Systems