How to change the port number for Asp.Net core app?
<p>I added the following section in <code>project.json</code>.</p>

<pre><code>  "commands": {
    "run": "run server.urls=http://localhost:8082",
    "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --server.urls http://localhost:8082",
    "weblistener": "Microsoft.AspNet.Hosting --server WebListener --server.urls http://localhost:8082"
  },
</code></pre>

<p>However, it still shows "Now listening on: <a href="http://localhost:5000" rel="noreferrer">http://localhost:5000</a>" when run it using <code>dotnet myapp.dll</code>?</p>

<p>BTW, will clients from other machine be able to access the service?</p>