Bobcares

Fixing Err_Connection_Refused in IIS

by | Jul 15, 2024

When a client cannot connect to the web server, the error code ERR_CONNECTION_REFUSED in IIS is created. Read the article to learn more. As part of our Server Management Support, we assist our customers with several IIS queries.

Overview
  1. Why ERR_CONNECTION_REFUSED in IIS?
  2. Causes & Fixes

Why ERR_CONNECTION_REFUSED in IIS?

The “ERR_CONNECTION_REFUSED” error in IIS (Internet Information Services) shows that the server refused the connection from the client. This can occur for several reasons. Let’s look into some of them.

iis err_connection_refused

Causes & Fixes

1. An improper port setup is one of the most common causes of the ERR_CONNECTION_REFUSED issue. IIS by default listens on ports 80 and 443 for HTTP and HTTPS traffic, respectively. The connection request will be rejected if the website is not set up to listen on the designated port.

Fix:

i. Choose the website and go to the “Bindings” section in the IIS Manager.

ii. Make that the website has been set up to use a suitable port (80 for HTTP, 443 for HTTPS).

iii. Update the port and try to reach the website once again if it is wrong.

2. A firewall that prevents the connection to the web server is another frequent source of the ERR_CONNECTION_REFUSED issue. It is possible to set up the firewall to prevent inbound connections on the ports that IIS uses.

Fix:

i. Try visiting the page again after temporarily disabling the firewall.

ii. The firewall was the problem if the website functions. The firewall has to be set up to accept connections on the right ports (80 and 443).

3. An app pool identity in IIS determines the security environment in which a web app works. The ERR_CONNECTION_REFUSED issue may occur if the identity is not configured correctly.

Fix:

i. Choose the website’s application pool in IIS Manager, then navigate to the “Process Model” area.

ii. Confirm that the “Identity” is assigned to the correct account (such as “ApplicationPoolIdentity,” “NetworkService,” or a particular user account).

iii. Update the identification if it’s inaccurate, then try visiting the page once more.

4. The web server will not be able to accept inbound connections if IIS is not operating, which will result in the ERR_CONNECTION_REFUSED error.

Fix:

i. Make sure the “Default Web Site”—or the particular website—is launched by opening the IIS Manager.

ii. Click the “Start” button to restart the website if there is a halt.

5. Sometimes missing permissions for the application pool identity or the IIS_IUSRS group can also cause this error.

Fix:

i. Verify that the IIS_IUSRS group or the application pool identity has the required rights (at least “Read” and “Execute” access) by checking the folder permissions for the website’s root directory.

ii. Update the permissions and try to visit the website again if there is an error.

[Looking for a solution to another query? We are just a click away.]

Conclusion

We should be able to fix the ERR_CONNECTION_REFUSED issue with IIS and get access back to the web application by taking care of these typical reasons using the fixes offered by our Techs in this article.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF