ERR_CONNECTION_REFUSED: How to Fix It as a Visitor and as a Site Owner

Short answer
What does ERR CONNECTION REFUSED actually mean?
ERR CONNECTION REFUSED is the network error Chrome and other Chromium browsers display when a connection attempt to the target address fails because nothing accepts it. The browser reaches the server, but nothing listens on that port, or a layer turns the request away. In other words, the problem is a closed door, not a slow one.
Short answer: ERR CONNECTION REFUSED (shown in Chrome as ERR_CONNECTION_REFUSED) means the other side shut the door the moment your browser tried to connect. The cause sits either on your device (proxy, VPN, security software) or on the website's server (web service down, port closed, wrong DNS record). The table below helps you tell which in a few minutes.
We wrote this guide for two readers. The first is a visitor who sees the error while trying to open a site. The second is a site owner whose customer just said "your website is down." Every section states whose job each step is. That way you never spend an hour on something that is not on your side.
The Chromium project's open source error list describes this case as a connection attempt that the other side refused, with the code -102. You can read it yourself in the Chromium network error list. The same list keeps connection resets and timeouts under separate codes. That distinction matters a lot during diagnosis.
Technically, the browser first turns the domain into an IP address. Then it tries to connect to port 80 or 443 on that address. If the other side answers "nobody here" right away, the error page appears almost instantly. So a page that fails fast, without a long wait, is a typical sign of this error.
Is the problem on your side or the website's side?
First, find out whether the error affects only your connection or everyone. The fastest test, for example, is to load the site from a different network. After that, you run an independent outside check. These two steps alone stop you from searching in the wrong place for hours.
- Turn off Wi-Fi on your phone and try the site over mobile data.
- Open the same site in another browser and in a private window.
- Use our is it down checker to see whether the site responds from the outside.
- Open another site, for example example.com, to confirm your internet connection works.
If the site loads over mobile data but fails on your home network, the problem most likely lives on your network. If the outside check also fails, the problem sits on the server, and there is little a visitor can do. On the other hand, an error that only shows up on one specific network points to a proxy or firewall on that network.
Two-sided diagnosis table for ERR CONNECTION REFUSED
The table below shows the five causes we see most often in practice and which side owns each one. Find your row, then jump to the matching section.
| Cause | Whose side | Typical symptom | How you test it |
|---|---|---|---|
| Wrong proxy or VPN setting | Visitor | Many sites fail, mobile data works. | Turn off proxy and VPN, then retry. |
| Local security software | Visitor | Only one computer shows the error. | Try another device on the same network. |
| Server firewall blocks the port | Site owner | Everyone sees the error, the server still answers ping. | Run an outside check and a port test. |
| Web server stopped or crashed | Site owner | Sudden outage for all visitors. | Read the service status in the hosting panel. |
| DNS points to the wrong IP | Site owner | Error starts right after a migration. | Compare the DNS answer with the server IP. |
The last three rows, in short, belong to the site owner. Still, visitors benefit from knowing them too. Instead of tweaking their own computer for an hour, they can pass accurate information to the business.
How do you fix ERR CONNECTION REFUSED as a visitor?
On the visitor side, the goal is to switch off, one by one, the local layers that may stop your request from reaching the server. Follow this order and you move from the cheapest check to the deepest one.
- Reload the page and check the address for typos, including http versus https.
- Clear the browser cache and cookies for that site.
- Turn off any VPN app and try again.
- Check your operating system's proxy settings, and remove any proxy you do not use.
- Flush the DNS cache or restart your router.
- Pause the web protection module of your security software briefly, test, then turn it back on.
If the site still works on other networks but not on yours after these steps, your internet provider or company network may filter it. This also happens a lot on office networks. Therefore the fastest route is to send your IT team the site address together with the error code.
Browser extensions can also cut requests. However, extension blocking usually shows up with a different code. We explain that difference in our guide to the ERR_BLOCKED_BY_CLIENT error.
Why do proxy and VPN settings trigger this error?
A proxy means your browser sends requests to an intermediate server instead of straight to the website. If that intermediate server is down or points to the wrong port, your browser never reaches the site. So the door that closes is the middle step, not the website.
The Chromium error list also has a separate code for a failed proxy connection. Even so, some setups surface it to the user as a refused connection. For example, an old ad blocker or a VPN you uninstalled may leave a local proxy address behind in the system. The program is gone, but the setting stays, and every connection heads to an empty address.
So when no site loads but mobile data works fine, the first place to look is your system proxy settings. On Windows and macOS this setting lives inside the network settings. Menu names change between versions, so we suggest searching for "proxy" in your network settings rather than following an exact path.
- Remove any automatic proxy configuration address that you did not add yourself.
- Turn off manual proxy settings if you are not on a company network.
- Disable any "route all traffic through the tunnel" option in your VPN app, then test.
How can a firewall refuse the connection?
In practice, a firewall can live in two places: on your computer or on the website's server. Both can drop or reject connections to a given port. The browser screen looks identical, but completely different people hold the fix.
On the visitor side, security software may label a site as risky and cut the connection. In that case its own warning window usually appears too. If there is no warning but the error only appears on that one device, the software's web filter is still the first suspect.
On the server side, however, the situation is more serious. A firewall on shared hosting or a VPS can block an IP address after too many failed login attempts. The site owner's own office IP can end up on that list, and then the site fails only from the office. We describe how these server firewalls work in our CSF firewall guide.
Also, on a freshly built server, port 443 may never have opened in the firewall. The site loads over http and fails over https. This is one of the patterns we see most often after a setup or a migration.
What happens when the web server is down, and how do you spot it?
The web server is the software that receives a request and sends back the page; Nginx, Apache and LiteSpeed are the most common examples. If this software stops running, the operating system rejects connections to that port immediately. The browser then shows ERR CONNECTION REFUSED.
According to the Apache documentation, the Listen directive tells the server which port or address and port combination to accept requests on, and the server fails to start if the directive is missing. You can read this in the Apache mpm_common documentation. Nginx uses its own listen directive for the same job; without it, Nginx listens on port 80 when it runs with superuser rights and on 8000 otherwise. The details sit in the Nginx core module documentation.
In practice, a web server stops in a few common ways. First, a typo in a config file makes the restart fail. Second, memory runs out and the system kills the process. Finally, an update stops the service and nobody starts it again. We cover resource exhaustion step by step in our guide on diagnosing a slow server.
How can a wrong port or https setup cause the error?
By default, browsers use port 80 for http and port 443 for https. If your web server only listens on 80 and the visitor goes to the https address, nobody waits on 443. As a result, the operating system turns the connection away instantly.
For example, if you share your site with an https link before installing an SSL certificate, visitors see this error. Similarly, if you run an app on port 3000 or 8080 and forget to put a reverse proxy in front of it, requests that arrive through the domain go nowhere.
If the certificate exists but the browser shows a security warning, that is a different problem. We cover it in our guide to the your connection is not private error. In short, a refused connection and an untrusted certificate are not the same thing. One says there is no door; the other questions the door's identity.
- Make sure the server listens on both port 80 and port 443.
- If the app runs on another port, confirm the reverse proxy rule is active.
- Check that the firewall opens the same ports.
Why does ERR CONNECTION REFUSED appear when DNS points to the wrong IP?
DNS is the system that turns a domain name into an IP address. If a record points to an old or wrong IP, the browser goes to that address. When no web server runs your site there anymore, the other side rejects the connection and the error appears as ERR CONNECTION REFUSED.
This pattern shows up most often after a hosting migration. The old server has gone offline, but then the A record still points to its IP. Some visitors reach the new address, others the old one, so the error feels random. To avoid that mess during a move, use our checklist on changing web hosting without downtime.
To check, read your domain's A record with our DNS lookup tool and compare it with the server IP shown in your hosting panel. If the two differ, you have found the problem. If terms like A record, TTL or nameserver feel unfamiliar, our web hosting glossary gives short definitions.
How do you read port test and DNS check results?
Diagnostic tools give you raw results; the real work is reading them correctly. This short guide also sums up the result combinations we see most often and what each one means.
- DNS shows the right IP but the port test says closed: the web server is down or a firewall blocks the port.
- DNS shows a different IP: the record still points to the old server, so fix the A record first.
- Port 80 open, port 443 closed: the certificate or https configuration is missing.
- The outside test passes but you see the error: the problem is on your network, so suspect a proxy, VPN or IP block.
- The result changes from minute to minute: the service may crash and restart repeatedly.
That last case deserves attention. If the web server shuts down for lack of memory and restarts on its own, the error looks intermittent. Instead of deciding after one test, check two or three times a few minutes apart. Also note the time of each result, because the support team will look at exactly those moments in the logs.
In short, the tools show you where you stand, and your reading decides where the diagnosis goes next. When you put DNS and port results side by side, usually only one or two of the five causes remain. That draws a clear line between the visitor side and the server side.
Where should a site owner start, step by step?
When a customer or an employee says "the site won't open," moving in order is the fastest path. The sequence below runs from the most likely cause to the least likely.
- Open the site on your own phone over mobile data to learn whether everyone sees the error.
- Run an outside reachability test and note the result.
- Confirm the domain's A record points to today's server IP.
- Check in the hosting panel whether the web server service is running.
- Recall recent changes: config edits, SSL setup, plugin updates or a migration.
- Check whether the server firewall blocks your own IP address.
- Read the server error log, or send the error code and time to your hosting support.
Step six, however, gets overlooked a lot. If the site works for everyone except your office, the server has most likely blocked you. Our what is my IP tool shows your address, and adding it to the support ticket speeds things up.
What should you check in your hosting panel?
On shared hosting you cannot restart the web server yourself, but the panel still shows several useful signals. Resource graphs, error logs and the firewall block list come first.
On a VPS or dedicated server, you can see the service status directly. If the web server is not running, test the configuration first and only then start the service. Restarting again and again without a config test just reproduces the same failure.
- Did memory or process count hit the limit on the resource graph?
- Does the error log have an entry that matches the time the service stopped?
- Is your own IP or office network on the firewall block list?
- Does the time of the last config change match the start of the outage?
If reading server logs is new to you, our server log file analysis guide explains the basics. Repeated request patterns in the log can also reveal other problems, such as bot floods.
What should you send to your hosting support?
The quality of your ticket directly affects how fast you get a fix. A ticket that only says "site down" makes the other side ask the same questions from scratch. So we recommend including these details in the first message:
- The domain and the exact error text, ERR CONNECTION REFUSED.
- Roughly when the error started and whether it is still going on.
- Whether it happens on http, https or both.
- The outside test result and the IP address that DNS returns.
- Your own IP address, so support can search the block list.
- Your last change: a plugin update, an SSL install or a migration.
This list, in other words, lets the support team look at the right time and the right IP in the logs. You also see how far you have already narrowed the problem down. With complete details, the cause often becomes clear in the first reply.
How is ERR CONNECTION REFUSED different from ERR_CONNECTION_RESET and a 522 error?
These three errors look alike; however, they happen at different moments. The right diagnosis keeps you from fixing the wrong layer. The table below shows the difference at a glance.
| Error | When it happens | Most likely place |
|---|---|---|
| ERR CONNECTION REFUSED | The other side rejects the connection attempt. | Stopped service, closed port, wrong IP. |
| ERR_CONNECTION_RESET | The connection opens, then drops suddenly. | Middle device, security filter, server process. |
| Cloudflare 522 | Cloudflare cannot reach the origin in time. | Origin server or its firewall. |
If the connection opens and then drops, our guide to the ERR_CONNECTION_RESET error is the better starting point. If the site sits behind Cloudflare, visitors see a Cloudflare error page instead of this one; in that case, switch to our Cloudflare 522 guide.
Why is ERR CONNECTION REFUSED on localhost a different topic?
Developers see this error most often on their own machines, at the localhost address. In that case the cause is almost always the same: the local dev server is not running, or it runs on another port. DNS, hosting and proxies are not part of the picture.
On a live website the picture is much wider. The visitor's network, the domain records, the server firewall and the web server are all suspects at once. That is why the two cases need separate treatment. For the local development case, see our guide on localhost refused to connect; this article focuses on live sites.
What should you do if you see the error on a phone?
Chrome on Android shows the same error code. The logic matches the desktop; however, the places you check differ a little. Private DNS settings, VPN apps and ad blocking apps are common causes on phones.
- Switch between Wi-Fi and mobile data and test the site on both.
- If private DNS is on in your network settings, set it to automatic for a moment.
- Pause any VPN or filter app running in the background.
- Clear that site's data in the Chrome app.
- Restart the phone and try again.
If the error only appears inside an in-app browser, open the link in Chrome separately. In-app browsers sometimes run with their own network settings. Still, if the error persists on both connections, the problem is most likely on the site's server, not on your phone.
A realistic example scenario: only https fails after a migration
Here is an example scenario, specifically a common one. A service business moves its site to a new VPS. The next morning, customers who click the site in Google see ERR CONNECTION REFUSED. The owner, meanwhile, opens the site on their own computer without trouble.
At first glance this seems contradictory. Once you look closer, though, the picture becomes clear. Specifically, the owner types the domain by hand, and the browser connects over http. The links in Google search results point to https. On the new server, port 443 stayed closed in the firewall, so the system turns away every https request.
The fix has three steps: open port 443 in the firewall, confirm the web server listens on that port, and test that the certificate works. After that, you check the https address again with an outside test. This example shows why "it works for me" is never enough on its own.
What are the most common mistakes?
The biggest time waster with this error is looking for a fix on the wrong side. These are the mistakes we see most in the field:
- Asking visitors to clear their cache while the problem sits on the server.
- Shutting down the old server before the DNS change has spread everywhere.
- Restarting the web server without testing the configuration first.
- Opening port 80 in the firewall and forgetting port 443.
- Missing a proxy setting left behind by an uninstalled VPN.
- Leaving visitors with a raw error screen during planned work instead of a maintenance page.
The last point matters a lot. During planned work, a clear maintenance page beats a refused connection. We show how to set it up with the right status code in our maintenance mode page guide.
How does this error affect SEO and paid traffic?
A refused connection is a closed door for search engine crawlers too. That said, a short outage usually leaves no lasting mark. However, if the error lasts, crawlers cannot reach your pages, and that can show up in indexing reports as a server connectivity problem.
On the ads side, the impact comes faster. Every visitor who clicks a Google Ads or Meta ad and lands on an error screen wastes budget. Therefore pausing ads as soon as you notice the outage is often a sensible call. For longer planned downtime, a 503 Service Unavailable status tells search engines more accurately that the problem is temporary.
How do you stop the error from coming back?
A connection problem you fixed once will return if the setup stays the same. So lasting prevention matters as much as the fix itself. These are the habits that work in practice.
First, set up an outside monitor that checks your site at regular intervals, so you learn about an outage before your customers do. Next, take a backup before every configuration change and test the change before you apply it. That lowers the risk of a single bad line keeping the web server from starting.
During migrations, do not shut down the old server right away; let both servers answer until the DNS change settles. Also keep your firewall rules in a written list. Knowing which port is open and why prevents the classic mistake of forgetting port 443 on a new server. Finally, watch resource usage, because an early memory warning keeps the service from dying on its own.
When should you get expert help?
If the diagnosis table points to the server side but you do not know what to check in the panel, getting help saves time. Migrations, SSL setup and firewall rules depend on each other, and it is easy to break one while fixing another.
As Talha Aslan and team, we set up a site's foundation during the design phase. Lean code, the right caching and a clean server configuration are part of our delivery, along with SEO basics. If your site keeps running into connection issues like this, a review through our web design services may be worth considering. The aim is not a one-off patch but a structure where the problem does not return.
How does our web design work help with problems like this?
Our web design work goes beyond looks. The scope covers information architecture and UX, brand-specific design, lean code built for speed and Core Web Vitals, proper caching and a clean server configuration. SEO basics, analytics and the Search Console connection are also ready on launch day.
In practice, the process runs in four steps: discovery and scope, design approval, development, then launch with measurement in place. You see development on a staging environment, and we never launch without your approval. That way details like SSL, ports and DNS get checked before launch. If you are planning a new site or want to rebuild your current one, our corporate website design page lays out the scope and the process.



