title: How do I get the kestrel web server to listen to non-localhost requests?
body: <p>I've deployed my c#, asp.net 5, mvc 6 app to a windows 2008 server.  I've fired up <code>dnx web</code> and it is listening to port 5000 and works fine when accessing from local computer.</p>
  <p>How do I get it to listen to non-localhost requests?</p>
  <p>P.S.  This <a href="https://stackoverflow.com/questions/33975949/asp-net-5-kestrel-connect-within-lan">question</a> is not a duplicate of this...it refers to asp.net pre RC1 when hosting.ini actually had an .ini format.  Now, it's JSON and I can't find any documentation on what should actually be in it.</p>
  <p>P.P.S.  The real solution is in the non-accepted <a href="https://stackoverflow.com/a/34092934/9382">answer</a> to the linked question, with a massive caveat.  Steps:</p>
  <ol>
  <li>Change your project.json per the linked answer.</li>
  <li>Publish your project to your server.</li>
  <li>On the server, go to ...\approot\src\YourProject folder and open a command window there.</li>
  <li>Run <code>dnx web</code> - it will fail</li>
  <li>Run <code>dnu restore</code></li>
  <li>Run 'dnu build`</li>
  <li>Run 'dnx web` - the web server should now start fine</li>
  </ol>
  <h1>P.S.  For people upvoting this question.  It's outdated.  Very badly outdated!</h1>
  <p>It applied to the early versions of the .NET Core.  The question and the answers certainly aren't applicable for the current versions of the framework (e.g. 2.x, 3.x)</p>