Chrome ERR_CONNECTION_REFUSED: How to Fix "refused to connect"

Updated Reviewed by: Theo
Use this guide if
  • Chrome shows "This site can't be reached" with refused to connect
  • The page fails with ERR_CONNECTION_REFUSED
  • A local server (localhost) won't open in Chrome
Quick answerERR_CONNECTION_REFUSED means the address was found, but nothing there accepted the connection. Reload and check the address (and port). If the site fails on your phone too, it is down or blocking you. If it fails only on this PC, check a VPN, proxy or security software: Chrome's Settings → System → Open your computer's proxy settings. If it is your own localhost address, the server is not running or uses another port.
Tested on Google Chrome 157.0.8103.52, Windows 11, fresh profile,
What this test does and doesn't cover

Procedure checked

  • Chrome 157 error page text when nothing listens on the address (heading, "refused to connect", suggestions, ERR_CONNECTION_REFUSED)
  • Location of Open your computer's proxy settings in Settings → System

Result checked

Not tested in this run

Side effects checked

Not tested in this run

Not tested

  • The Windows proxy window that the setting opens (outside the browser)
  • Refusals caused by a firewall, VPN or security software, and real public websites

Screenshots come from our own runs unless a step is marked otherwise.

Is this your error?

Seeing a different error code? ERR_NAME_NOT_RESOLVED means the address could not be found. ERR_TOO_MANY_REDIRECTS means the page reloads in a loop.

Error message as shown
This site can’t be reached
127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

On your screen the site's address appears instead of 127.0.0.1.

How we reproduced it

We opened a port on our own PC where no program was running. The PC answered "no one here", which is what Chrome reports as refused. A server that is down, or a firewall that rejects you, gives the same answer. Reproduced by simulating the condition: local port with nothing listening (127.0.0.1:8799)

Chrome error page "This site can't be reached", "127.0.0.1 refused to connect", ERR_CONNECTION_REFUSED

Steps

1

Reload and check the address

Press F5. Check the address, including any port number after a colon (for example :8080). A wrong port gives exactly this error.

2

Test from another device or network

What you see What it means
Fails on your phone with mobile data too The site is down or refuses connections. Wait, or contact the site.
Works on your phone, fails on this PC Something on this PC or network: proxy, VPN, firewall or security software. Go to step 3.
Your own localhost / 127.0.0.1 address Your development server is not running, crashed, or listens on another port. From official docs, not tested here
3

Check the proxy setting

Open Chrome's Settings → System, or paste chrome://settings/system. Click Open your computer's proxy settings. Chrome uses the Windows proxy; the window that opens belongs to Windows, so it is not in our screenshot.

"Open your computer's proxy settings" in Chrome's System settings

If a proxy is set that you don't recognise, turn it off and reload. From official docs, not tested here

4

Turn off VPN or security software for a moment

Pause the VPN or the web protection of your security program, reload, then turn it back on. If the site opens while it is off, add an exception there. From official docs, not tested here

Common questions

Is my internet down?

Probably not. With no connection at all Chrome shows a different error (no internet). "Refused" means your PC reached the server's address and got an answer. From official docs, not tested here

What is the difference from "server IP address could not be found"?

That error means the address could not be looked up at all (DNS). Refused means the address was found but the connection was rejected. For the DNS one, see Chrome "server IP address could not be found".

If it didn't help

Situation What to check
Only one site, for days The site may block your network or region. Try another network.
Many sites refuse Proxy or security software on this PC, or a router/firewall rule. From official docs, not tested here

Sources

Google Chrome Help: Fix connection and loading errors in Chrome

How we make guides: we run each step in a real browser or operating system, capture every screen, and have a person review the result. AI assists with drafting.

Report an error in this guide