2013-06-11 58 views
5

我试图让IIS Express工作,以便外部用户可以查看我的MVC ASP.NET开发网站。我遵循这个SO answer的说明,但现在使用我的外部IP地址访问网站时出现503错误,本地主机仍然正常工作。IIS Express启用外部请求 - 503

我的配置文件似乎确定

<site name="ManagerUI" id="5"> 
    <application path="/" applicationPool="Clr4IntegratedAppPool"> 
     <virtualDirectory path="/" physicalPath="D:\Application Development\Manager\MAIN-Branch\ManagerUI\ManagerUI" /> 
    </application> 
    <bindings> 
     <binding protocol="http" bindingInformation="*:1904:" /> 
    </bindings> 
</site> 

我发现下面的SO answer解决了问题,但它只会允许它在外部地址工作,而不是我的所有IP地址(本地主机,外径等)

<binding protocol="http" bindingInformation=":1904:your-machine-name" /> 

回答

16

我设法解决这个问题,我的错在想,你可能只有一个绑定集,我再设置为每一个外部地址绑定我希望担任,现在一切工作

<bindings> 
    <binding protocol="http" bindingInformation=":1904:" /> 
    <binding protocol="http" bindingInformation=":1904:machineName" /> 
    <binding protocol="http" bindingInformation=":1904:10.1.10.123" /> 
</bindings>