2013-06-11 3 views
5

외부 사용자가 MVC ASP.NET 개발 웹 사이트를 볼 수 있도록 IIS Express를 작동 시키려고했습니다. 나는이 SO answer에 대한 지침을 따랐지만 localhost가 여전히 잘 작동하는 내 외부 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> 

I 발견 된 문제를 해결하지만, 그것은 단지 그것이 내 모든 IP 주소가 아닌 외부 주소에서 작업 할 수 있습니다 SO answer를 (다음 로컬 호스트, 외부 일 등 확인 보인다)

<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>