Can I set listen URLs in appsettings.json in ASP.net Core 2.0 Preview? : <p>I'm creating an ASP.net Core 2.0 app to run on the .net Core 2.0 runtime, both currently in their Preview versions. However, I cannot figure out how to have Kestrel use something other than the default <code>http://localhost:5000</code> listen URL.</p>

<p>Most documentation that I could Google talks about a <code>server.urls</code> setting, which seems to have been changed even in 1.0-preview to just be <code>urls</code>, however neither works (turning on Debug logging has Kestrel telling me that no listen endpoints are configured).</p>

<p>A lot of documentation also talks about a <code>hosting.json</code> and that I can't use the default appsettings.json. However, if I compare the recommended approach of loading a new config, this looks pretty much exactly like what the new <a href="https://github.com/aspnet/MetaPackages/blob/f245512f6e68d65309b65528d479f32b34c67718/src/Microsoft.AspNetCore/WebHost.cs#L150" rel="noreferrer"><code>WebHost.CreateDefaultBuilder</code></a> method does, except that it loads appsettings.json.</p>

<p>I currently don't understand how appsettings.json and <code>IConfigureOptions&lt;T&gt;</code> are related, if at all, so it's possible that my trouble stems from a lack of understanding of what <a href="https://github.com/aspnet/KestrelHttpServer/blob/7ceea5323aeb78c5c5a9b0f68f1e52d65073b16f/src/Microsoft.AspNetCore.Server.Kestrel.Core/Internal/KestrelServerOptionsSetup.cs" rel="noreferrer"><code>KestrelServerOptionsSetup</code></a> actually does.</p>
