ERR_CONNECTION_REFUSED Server refuses connection

The destination server did not accept the connection request.

First, check that this guide matches your problem

When it happens

I can't connect to the development server or the service on a specific port.

Common causes

  • Service not running
  • Wrong port
  • Rejected by the server

Step-by-step fixes

3 steps, 17 min–27 min in total. The easiest checks come first, so stop as soon as the problem is fixed.

A refused connection most often means no service is listening on that address and port. If the port number or http/https is wrong, the connection is refused even when the service is fine.

  1. Compare the address bar with the original instructions. For example, if the dev server is http://localhost:3000, make sure you did not open it with https or a different port.
  2. For an external site, also try the same address on a phone using mobile data.

What to check

If an external site is refused on other networks too, the operator needs to restart the service, so send them the address and time. If it is your own server, check the service status in the next step.

Did this step fix it?

Frequently asked questions

Related PC FIX problems

Official references

Content reviewed: 2026-10-07