title: IIS Express defaulting to port 44300 for HTTPS when enabling SSL
body: <p>When you initially set up IIS Express to enable SSL, it defaults the port to 44300. Unfortunately, when I try to access my site in on <code>https://localhost/</code> it doesn't work unless I use the port number 44300 - <code>https://localhost:44300/</code>.</p>
  
  <p>The links are generated using the following:</p>
  
  <pre><code>&lt;%= Html.ActionLink("Index", "Index", "Home", new { @action = "https://" + Request.Hostname + Url.Action("Index", "Home") }) %&gt;
  </code></pre>
  
  <p>Although an ugly solution, the <code>@action</code> keyword can override the generated route, but it means that the application would seemingly need to be aware of any non-standard ports (eg 44300).</p>
  
  <p>The problem with that is that I'd be writing something to solve a problem that would only occur in a development environment.</p>
  
  <p>So my question is... <strong>How do I change the port to 443 and have IIS Express like it?</strong></p>
  
  <p>Config for my site is below:</p>
  
  <pre><code>&lt;site name="MySite" id="2" serverAutoStart="true"&gt;
    &lt;application path="/"&gt;
      &lt;virtualDirectory path="/" physicalPath="C:\Inetpub\MySite" /&gt;
    &lt;/application&gt;
    &lt;bindings&gt;
      &lt;binding protocol="http" bindingInformation=":80:" /&gt;
      &lt;binding protocol="https" bindingInformation=":44300:" /&gt;
    &lt;/bindings&gt;
  &lt;/site&gt;
  </code></pre>
  
  <p>Many thanks in advance.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>This question has been <a href="http://forums.iis.net/t/1171280.aspx" rel="nofollow noreferrer">answered</a> by Divya over on the IIS forums.</p>