A couple of months ago when I started working with Windows Azure, I quickly realized that a web role running on the local development fabric could only bind to localhost (127.0.0.1). I opened a thread in the Microsoft forums:
Can the development fabric bind to the real IP address? (not 127.0.0.1)
http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/9b8957e6-7983-47a7-9d75-954dee70dbf0
One developer, JuanSueroNYC, found a way to make this work for WCF services. But I want to access ASP.NET Sites as well as WCF Services running on my Azure web roles – and I’d like to make it as simple as possible (one time configuration).
We create SSH tunnels using freeSSHd and PuTTY
Whenever I’m working on a project I like to use CruiseControl.NET (http://ccnet.thoughtworks.com/) and create a continuous integration system. Every night at 2:00 AM , this system is responsible for getting the latest code from source control, compiling, running unit tests, deploying and more. This allows our business folks to get an earlier look at our product and makes sure no single developer or designer has broken the build.
We also work on WPF smart clients and I didn’t want to force the client teams to run the Azure web roles on their machines just because Microsoft only allows the local development fabric to bind to 127.0.0.1.
I was bummed out when I realized that Microsoft has placed this dumb restriction on Windows Azure web roles. I’ve seen a response from Microsoft where they mumble something about the local development fabric running with admin rights and that not being secure – but I could always run IIS with admin rights – should we only allow IIS to bind to 127.0.0.1?
My guess is that this dumb decision was made by some pointy head guy who doesn’t understand technology and was afraid that from a business perspective developers would use the local development fabric as a cheap Production load balancer. Ridiculous – but don’t underestimate the stupidity of business folks.
Ok, enough ranting – see below for a full tutorial on how to access web roles running on a Windows Azure local development fabric from any other computer and not only on http://127.0.0.1 on the local host. Thanks to my co-worker Lanh for coming up with this solution – great work!
Continue reading "Accessing the Windows Azure local development fabric from another computer" »