title: How to Host .net Core 3.0 Web Api on IIS?
body: <p>I am trying to run .net core web Api on Remote PC by hosting it on IIS. I am able to run application locally. Api works fine when it is run through PostMan.</p>
  
  <p>I can run the application using IP address also by using </p>
  
  <pre><code>UseUrls("http://localhost:5000", "http://localhost:21868","http://*.*.*.*:5000")
  </code></pre>
  
  <p>in <code>program.cs</code>(Self hosted Application using kestral).
  Set up done in <strong>applicationhost.config</strong></p>
  
  <pre><code>&lt;binding protocol="http" bindingInformation="*:21268:localhost" /&gt;
  </code></pre>
  
  <p>I tried to run API without debugging on remote PC by hosting it on IIS but I am unable to do that ?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Error I am getting while I am trying to host-</p>
  
  <blockquote>
    <blockquote>
      <p>Unable to connect to web server iisexpress<code>and</code>invalid URl: the hostname could not be parsed.</p>
    </blockquote>
  </blockquote>