Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Express Enable External Request - 503

I have attempted to get IIS Express working so that external users can view my MVC ASP.NET development website. I followed instructions on this SO answer but am now getting a 503 error when accessing the website using my external IP address, localhost still works fine.

My configuration file seems ok

<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 found the following SO answer which solves the issue, but it will ONLY allow it to work on an external address rather than all my IP addresses (localhost, external one etc)

<binding protocol="http" bindingInformation=":1904:your-machine-name" />
like image 362
Chris Avatar asked Jun 11 '13 15:06

Chris


People also ask

How do I fix error 503 in IIS?

A simple resolution for HTTP Error 503 is to start the application pool corresponding to your website. If you get an application pool identity-related error or warning, make sure the username and password for the identity are correct. If a custom username is used, make sure its password is not expired.

How do I access my IIS Express site from another computer?

Normally when you run an application in IIS Express, it's only accessible on http://localhost:[someport]. In order to access it from another machine, it needs to be bound to your public IP address as well. Open* D:\Users[YourName]\Documents\IISExpress\config\applicationhost. config *and find your site.

Is currently unable to handle this request 503?

The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.


1 Answers

I managed to solve it, my mistake was thinking that you could only have one binding set, I then setup binding for every external address I wished to serve on and it now all works

<bindings>
    <binding protocol="http" bindingInformation=":1904:" />
    <binding protocol="http" bindingInformation=":1904:machineName" />
    <binding protocol="http" bindingInformation=":1904:10.1.10.123" />
</bindings>
like image 101
Chris Avatar answered Sep 30 '22 07:09

Chris