Search code examples
c#iisazureiis-expressazure-web-roles

How to bind an IP Address to my Azure Web Role so that the Web APIs can be accessed globally by a remote computer?


The Web Role of my Azure application has Web APIs which i want to access through a remote computer. Normally it should work if I just add the bindings to my website in applicationhost.config file of iis express. But for Windows Azure project the emulator is attaching the web role to iis express and giving a default url of "127.255.0.0:82".

Now how can i bind an ip address to my web role? or how can i access my APIs from a remote computer?


Solution

  • The Development Fabric uses loopback addresses to host Windows Azure Roles, so there is no default way to access those service from a remote computer.

    Have a look here: http://blog.sacaluta.com/2012/03/windows-azure-dev-fabric-access-it.html Rodrigo De Castro proposes a port mapping to make web roles hosted in the dev fabric accessible for remote computers.

    I haven't tried it myself yet, but it sounds promising.