简体   繁体   English

如何将IP地址绑定到我的Azure Web角色,以便远程计算机可以全局访问Web API?

[英]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 . RINETDserviceex 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.

相关问题 将文件从我的Azure Web角色复制到另一台计算机 - Copying a file from my Azure web role to another computer 如何检查网页是否已通过ASP.Net上的特定IP地址访问? - How can i check if the web page is already accessed in particular IP Address on ASP.Net? 我的Web应用程序以天蓝色部署,需要指向一个静态IP地址 - My web app deploys in azure needs to point to a static ip address 从远程计算机访问本地Web服务(本地主机与IP地址) - local web service access from remote computer (localhost vs. ip address) 如何获取远程计算机的IP地址 - How to get the IP address of Remote Computer 在Azure上配置关联的WCF Web角色IP - Configuring Associated WCF Web Role IP on Azure 如何获取访问我的网页的客户端的IP地址,其中我的网页或WebApp托管在某个远程服务器上 - How to get IP address of the Client accessing my page where My web page or WebApp is hosted at some remote server 两个 azure web apis 如何在 azure 中通信 - How two azure web apis communicate in azure 如何确定我的计算机的IP地址是否在指定的网络地址之下? - How can I determine if my computer's IP address falls under a specified network address? 如何获取本地计算机的计算机名称和IP地址 - How can I get computer name and IP address of local computer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM