简体   繁体   English

无法从另一个组件访问IIS Azure仿真器

[英]Cannot access IIS azure emulator from another comp

For testers convenience I need start emulation of azure for our web application on some virtual machine. 为了方便测试人员,我需要在某些虚拟机上为我们的Web应用程序开始模拟Azure。 I've started azure emulator with CSRun using iis. 我已经使用iis使用CSRun启动了Azure仿真器。 Now IIS looks like following: 现在,IIS如下所示: 网站部署

I can successfully connect inside this virtual machine by local url: http://127.0.0.1:81 But when I'm trying to connect from other workstation the application is not available by this port (ping is passed and firewall turned off). 我可以通过本地URL成功连接到此虚拟机内部: http://127.0.0.1:81 : http://127.0.0.1:81 : http://127.0.0.1:81但是,当我尝试从其他工作站进行连接时,该端口无法使用该应用程序(通过了ping操作并关闭了防火墙)。

IIS shows that site available by IP: 127.255.0.1 - of course it is internal range. IIS显示该站点的IP地址为:127.255.0.1-当然是内部范围。 Googling around I've found very close article http://blogs.staykov.net/2013/05/windows-azure-basicscompute-emulator.html . 到处搜寻,我发现非常接近的文章http://blogs.staykov.net/2013/05/windows-azure-basicscompute-emulator.html And followed to narrow Vip addresses. 然后缩小Vip地址。 But IIS uses DIP! 但是IIS使用DIP! So my first question - how to force Vip instead of Dip? 所以我的第一个问题-如何强制Vip而不是Dip? I've already tried: (1) Remove DIp from DevFC.exe.config, (2) set Dip to 127.0.0.1 - 127.0.0.1 我已经尝试过:(1)从DevFC.exe.config中删除DIp,(2)将Dip设置为127.0.0.1 - 127.0.0.1

And the second - what to do to expose azure emulator to local network? 第二-如何使Azure仿真器暴露于本地网络?

In my opinion, this is going down a path that is going to cause more pain than it is worth. 在我看来,这是一条会造成更多痛苦的道路。 If the goal is to provide an environment for QA staff to work with, then why not give them an environment that is the same as the final product? 如果目标是为质量检查人员提供一个工作环境,那么为什么不给他们与最终产品相同的环境呢? Could you deploy to a free Windows Azure Web Site, or a Web Role? 您可以部署到免费的Windows Azure网站或Web角色吗? Costs for the Web Role could be minimized by running a small instance, one instance, and/or turn off when not in use. 通过运行一个小实例,一个实例和/或在不使用时将其关闭,可以最大程度地降低Web角色的成本。

Microsoft不支持执行此操作,但是要解决此问题,您可以遵循http://blog.ehuna.org/2009/10/accessing_the_windows_azure_lo.html

我发现最简单的方法是在本地IIS中安装ARR(应用程序请求路由),在端口xx上创建一个新网站,并在其中为反向代理创建URL重写规则-每个端口的传入请求都发送到仿真器的地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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