1

Is it possible to access a WebApplication hosted on DevFabric (WebRole) from outside the hosting machine?

If possible, how can i achieve this.

Thanks.

Bongo Sharp
  • 9,450
  • 8
  • 25
  • 35

2 Answers2

2

If you are using SDK 1.3 or later, since the local web role will be deployed in IIS it can be accessed if you open the port 81, 82, 83, etc. on your firewall. But there's a annoying problem. Since the local emulator will select the first valid port after 80 and 443, your website might have a dynamically port assigned. I guess you want to have this website binding with a continue integration server, I would like to recommend you remove all deployments before this build, to make sure the website utilize 81 and 444 port (if HTTPS needed). Hope this helps.

Shaun Xu
  • 4,476
  • 2
  • 27
  • 41
  • i tried this approach, basically i ran my emulator with my app, then open the port 444, but still it is unaccessible from outside the machine, do you have any clues? – Bongo Sharp Feb 09 '12 at 19:59
  • from this post: http://stackoverflow.com/questions/8625075/how-to-connect-to-the-azure-compute-emulator-remotely-to-test-a-web-role-from-an it looks like the emulator only listens to localhost calls, where you able to accomplish that? – Bongo Sharp Feb 09 '12 at 20:01
  • I believe you had checked the firewall settings. I will check if I have time these days and get back to you. – Shaun Xu Feb 10 '12 at 02:48
  • Hello Shaun, actually i has able to fix the issue, bellow you can find how i accomplished that. – Bongo Sharp Feb 14 '12 at 22:01
  • Did i forgot to say... THANK YOU for your time :) – Bongo Sharp Feb 14 '12 at 22:01
2

The problem is not a trivial as it might seem, the problem is that the Development Fabric is married with 127.0.0.1, so it only accepts request comming from localhost, however you can trick this by routing all incomming calls for a specific port to "127.0.0.1" the following article describes the problem and how to fix it:

http://theazureexperience.wordpress.com/2012/01/15/accessing-a-web-role-in-development-fabric-from-another-machine/

let me know if anyone has a similar issue and i'll be more than willing to help.

-Miguel

Bongo Sharp
  • 9,450
  • 8
  • 25
  • 35