What it means
| Code | 521 |
|---|---|
| Name | Web server is down |
| Type | Cloudflare status |
| Usually caused by | The provider's server |
The origin server actively refused the TCP connection from Cloudflare.
In practice
With 521, Cloudflare tried to open a connection to the provider's server and was actively refused. The panel service is stopped, the server was replaced, or its firewall started blocking Cloudflare's address ranges, a common mistake after a server migration.
Since the refusal happens between Cloudflare and the provider, nothing on your device, network or account changes it. Checking the provider's status channel or support chat is the fastest way to find out how long it will take.
After a migration, the provider usually has to update the address Cloudflare forwards to, or allow Cloudflare's IP ranges through the new server's firewall. Both changes take effect within minutes once made. If your provider gave you a direct server address as a backup (one that does not go through Cloudflare), trying it tells you whether the panel itself is running. Keep the original address saved too, because it will work again as soon as the fault is fixed.
Where you see it
- During provider outages.
- After a provider changed servers without updating Cloudflare.
Common causes
- Panel service stopped.
- Origin firewall blocks Cloudflare's addresses.
- Server moved to a new address.
How to fix it
- Wait and retry.
- Ask the provider whether there is an outage or a new server address.
Frequently asked questions
How long do 521 outages last?
Usually minutes to hours, depending on how fast the provider reacts.
521 and 522: which is worse?
521 means the server refused straight away (often stopped or misconfigured); 522 means it never answered (often overloaded or unreachable). Both are provider-side.