title: Why Kestrel doesn't listen at specified port?
body: <p>I am trying to create web application using kestrel. In this article <a href="https://docs.microsoft.com/pl-pl/aspnet/core/fundamentals/servers/kestrel?tabs=aspnetcore2x" rel="nofollow noreferrer">https://docs.microsoft.com/pl-pl/aspnet/core/fundamentals/servers/kestrel?tabs=aspnetcore2x</a> there is explanation how to use kestrel (code below):</p>
  
  <pre><code>public static IWebHost BuildWebHost(string[] args) =&gt;
      WebHost.CreateDefaultBuilder(args)
      .UseStartup&lt;Startup&gt;()
      .UseKestrel(options =&gt;
      {
          options.Listen(IPAddress.Loopback, 5000);
      })
      .Build();
  </code></pre>
  
  <p>IIS starts default at port 49950 but nothing is listening on port 5000. Why it doesn't work? Am I missing something? I want to force kestrel to listen on 5000 from code only (without interfering into other project files). Also <code>UseUrls</code> is non-acceptable because of missing SSL support. How can I achieve this? </p>