ERR_CONNECTION_TIMED_OUT on Cloudflare

When Cloudflare cannot reach the origin it returns error 522 rather than passing the timeout through, so a browser timeout with Cloudflare in front usually means the edge itself is unreachable.

Why it happens on Cloudflare

When Cloudflare cannot reach the origin it returns error 522 rather than passing the timeout through, so a browser timeout with Cloudflare in front usually means the edge itself is unreachable.

The fix on Cloudflare

Compare the origin directly by IP against the proxied hostname. If the origin answers and Cloudflare does not, check that the origin firewall allows Cloudflare's IP ranges rather than only your own.

If that didn't fix it

Cloudflare has its own failure mode, but ERR_CONNECTION_TIMED_OUT has a wider set of causes. The most common one overall is: The origin server is down or the web server process has stopped.

Check the service is running and listening on the expected port, then restart it and confirm from outside the network.

Check your own domain

An uptime probe from outside your network tells you whether the server is unreachable for everyone or only from where you are sitting — which is the first fork in every timeout diagnosis.

Frequently asked questions

Why does ERR_CONNECTION_TIMED_OUT happen on Cloudflare?

When Cloudflare cannot reach the origin it returns error 522 rather than passing the timeout through, so a browser timeout with Cloudflare in front usually means the edge itself is unreachable.

How do I fix ERR_CONNECTION_TIMED_OUT on Cloudflare?

Compare the origin directly by IP against the proxied hostname. If the origin answers and Cloudflare does not, check that the origin firewall allows Cloudflare's IP ranges rather than only your own.

What does ERR_CONNECTION_TIMED_OUT mean?

DNS resolved and the browser tried to open a TCP connection, but nothing answered before the timeout. The server is unreachable, overloaded, or a firewall is dropping the packets silently.