简体   繁体   中英

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?

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.

I am using the An easier way to access the Windows Azure local development fabric from another computer . with RINETD and serviceex . Very nice mix of tools and approach.

I was also successfully able to Edit bindings as a temporary workaround from my IIS (not IIS Express). Below image with original resolution .

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM