[英]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. 我的Azure应用程序的Web角色具有Web API,我想通过远程计算机访问它。 Normally it should work if I just add the bindings to my website in applicationhost.config file of iis express. 通常它应该工作,如果我只是在iis express的applicationhost.config文件中添加绑定到我的网站。 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". 但是对于Windows Azure项目,模拟器将Web角色附加到iis express并提供默认URL“127.255.0.0:82”。
Now how can i bind an ip address to my web role? 现在我如何将IP地址绑定到我的Web角色? or how can i access my APIs from a remote computer? 或者我如何从远程计算机访问我的API?
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. Development Fabric使用环回地址来托管Windows Azure角色,因此没有默认方式从远程计算机访问这些服务。
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. 请看这里: http : //blog.sacaluta.com/2012/03/windows-azure-dev-fabric-access-it.html罗德里戈·德卡斯特罗提出了一个端口映射,以便在开发结构中托管Web角色远程计算机。
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 . 我正在使用从另一台计算机访问Windows Azure本地开发结构的更简单方法 。 with RINETD and serviceex . 与RINETD和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). 我也成功地将绑定编辑为我的IIS(不是IIS Express)的临时解决方法 。 Below image with original resolution . 下面的图像与原始分辨率 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.