title: Cannot debug in Visual Studio after changing the port number?
body: <p>I added the line <code>.UseUrls("http://*:5000")</code> to enable clients from other hosts accessing the web api.</p>
  
  <pre><code>    public static void Main(string[] args)
      {
          var host = new WebHostBuilder()
              .UseKestrel()
              .UseContentRoot(Directory.GetCurrentDirectory())
              .UseIISIntegration()
              .UseStartup&lt;Startup&gt;()
              .UseUrls("http://*:5000") // Added
              .Build();
  
          host.Run();
      }
  </code></pre>
  
  <p>However, using browser to access <code>localhost:5000/api/Test</code> got the error of <code>HTTP/1.1 400 Bad Request</code>? Should the <code>.UseUrls()</code> be only compiled for production?</p>
  
  <pre>
  HTTP/1.1 400 Bad Request
  Date: Mon, 08 Aug 2016 21:42:30 GMT
  Content-Length: 0
  Server: Kestrel
  </pre>
  
  <p>The following messages are copied from Visual studio Output window when testing.</p>
  
  <blockquote>
    <p>Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET <a href="http://localhost:5000/api/Test" rel="noreferrer">http://localhost:5000/api/Test</a></p>
    
    <p>Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware:Error: 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token '9bca37f2-7eda-4517-9f8f-60b6cc05cf01', request rejected.</p>
    
    <p>Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 8.5976ms 400 </p>
  </blockquote>