localhost has refused the connection.

Skylär Astaröt 0 Reputation points
2023-06-06T14:26:02.49+00:00

Good morning, this week I was testing the Acunetix trial, a security scanner of my website on Localhost, but then I realized that I can't access my website, it seems that it rejects the port 80 connection, I tried these possible solutions :

  • Uninstall Acunetix using Revo, to remove the related registry keys.
  • Uninstall IIS 10, reboot and re-install IIS 10.

Using Test connection, it tells me the error:

Authorization - The server is configured to use pass-through authentication with a built-in account when accessing the specified physical path. However, IIS Manager cannot verify if the built-in account has access. Make sure the application pool identity has read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain><machine_name>$ has read access to the physical path. Then try this configuration again.

I need a solution to view my site.

Internet Information Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TengFeiXie-MSFT 346 Reputation points
    2023-06-07T09:12:16.7366667+00:00

    Hi @Skylär Astaröt

    As far as I know, it is just a warning not error. With passthrough authentication, IIS will attempt to use the actual identity of the user when accessing protected resources. If the user is not authenticated, IIS will use the application pool identity instead. If pool identity is set to NetworkService or LocalSystem, the actual Windows account used is the computer account. You can try the solutions below.

    1. You can try to set Application pool identity in anonymous authentication. Then access your website for test. User's image
    2. This error may also be IIS_IUSRS. Please check folder security permissions. Give IIS user full access.
    3. Since you have reinstalled IIS, please check if your IIS installation is complete, provide a screenshot of IIS installation as below.

    User's image

    This is just a warning, I'm not sure if this is the reason you can't access your site. If you still can't access, please provide the error message when accessing.

    Best Regard,

    TengFei Xie


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Skylär Astaröt 0 Reputation points
    2023-06-08T09:59:07.1866667+00:00

    Thank you now working, I came up with a solution, although I don't know if it is the most convenient, enter in:

    edge://net-internals/#hsts

    In the field > Delete domain security policies

    Domain imput to Localhost, this is fixed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.