How to specify the port an ASP.NET Core application is hosted on?
<p>When using <code>WebHostBuilder</code> in a <code>Main</code> entry-point, how can I specify the port it binds to?</p>
<p>By default it uses 5000.</p>
<p>Note that this question is specific to the new ASP.NET Core API (currently in 1.0.0-RC2).</p>