【问题标题】:Accessing a Visual Studio 2010 Web Server over a local network通过本地网络访问 Visual Studio 2010 Web 服务器
【发布时间】:2011-12-07 15:06:37
【问题描述】:

我希望能够接受来自本地网络上其他地方的对我的调试 Web 服务器环境的传入请求。

例如:

开发框:本地 IIS Express Web 服务器(通过 Visual Studio“使用本地 IIS Web 服务器”复选框部署)在“localhost:9005/push”上运行(我当前的 IP 是 10.100.7.61)

我正在尝试使用 URL“10.100.7.61:9005/push”从 10.100.7.60 连接

我知道无法从本地网络访问 Visual Studio 开发服务器,但我不明白为什么 IIS Express 服务器不能访问?

通过将网站部署到 IIS 实例(在端口 9004 上运行),我已经能够从本地 IIS(不是通过 Visual Studio 部署服务器)访问 URL,所以我知道我可以访问我的盒子.

我知道 Visual Studio 的内部 Web 服务器无法从您的计算机外部访问,但我认为本地 IIS Web 服务器是解决此问题的方法。

任何帮助或指导将不胜感激!

谢谢, 马修

【问题讨论】:

    标签: visual-studio-2010 iis-express


    【解决方案1】:

    你应该如下绑定你的iis express服务器的ip地址:

     <binding protocol="http" bindingInformation="*:9005:10.100.7.61" />
    

    配置文件应该位于sites/site/bindings下

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-11
      • 2017-04-03
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      • 2016-04-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多