title: How to Change Server.Urls with Microsoft.AspNet.Server.WebListener
body: <p>Many <a href="http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6" rel="nofollow">articles</a> are setting up servers with Microsoft.AspNet.Server.WebListener and are listing <code>--server.urls</code> as the variable to set the url to listen on. However, all of the articles are determining localhost as the url with a port.</p>
  
  <p><strong>How can the url be change from localhost to a custom url?</strong></p>
  
  <p>I've tried the following but the command exits with code 1 (0x1).</p>
  
  <pre><code>{
      "webroot": "wwwroot",
      "version": "1.0.0-*",
      "dependencies": {
          "Microsoft.AspNet.Server.IIS": "1.0.0-beta3",
          "Microsoft.AspNet.Mvc": "6.0.0-beta3",
          "Microsoft.AspNet.WebApi": "5.2.3-beta1",
          "jQuery": "2.1.3.0",
          "Microsoft.AspNet.Server.WebListener": "1.0.0-beta3"
      },
      "frameworks": {
          "aspnet50": { },
          "aspnetcore50": { }
      },
      "commands": {
          "Web ": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://toolset.local:5000"
      },
      "bundleExclude": [
          "node_modules",
          "bower_components",
          "**.kproj",
          "**.user",
          "**.vspscc"
      ],
      "exclude": [
          "wwwroot",
          "node_modules",
          "bower_components"
      ]
  }
  </code></pre>