title: Failed to load resource: net::ERR_CONNECTION_TIMED_OUT on remote but works fine on localhost
body: <p>i have react with asp.net core website . it worked fine on localhost but when published on iis remote server the timeout error occurs.
  the front-end (react client) and back-end(server)  asp.netcore webapi work independently.</p>
  <p>before uploading i changed the following in program.cs in webapi.</p>
  <p><code> usUrl(&quot;https://localhost:4000&quot;)</code>
  to <code>useUrl(&quot;https://www.virtualcollege.pk:4000&quot;)</code>
  i also changed the front-end baseurl similarly.</p>
  <p>moreover, the connectionstrings in appsettings.json is correct for both databases.
  i added migration and updated the databases successfully.
  the website is live but timeout error occur :
  <a href="https://www.virtualcollege.pk/" rel="nofollow noreferrer">virtualcollege.pk</a></p>
  <p>i also tried the url with &quot;https://myip-address:4000&quot;
  thanks in advance for help.
  if i remove port number from url and publish on local folder than upload to remote server . the webapi.exe on local machine runs as follows:
  <a href="https://i.stack.imgur.com/PU1uz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PU1uz.png" alt="webApi on local here" /></a></p>