---
title: "ERR_CONNECTION_TIMED_OUT on Cloudflare: cause and fix"
description: "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…"
canonical: "https://lemwatch.com/errors/err-connection-timed-out/in-cloudflare"
source: "https://lemwatch.com"
---

# 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.


## Related

- [All causes of ERR_CONNECTION_TIMED_OUT](https://lemwatch.com/errors/err-connection-timed-out)
- [All website error codes](https://lemwatch.com/errors)
- [ERR_CONNECTION_TIMED_OUT on Chrome](https://lemwatch.com/errors/err-connection-timed-out/on-chrome)
- [ERR_CONNECTION_TIMED_OUT on Android](https://lemwatch.com/errors/err-connection-timed-out/on-android)
- [ERR_CONNECTION_TIMED_OUT on WordPress](https://lemwatch.com/errors/err-connection-timed-out/in-wordpress)
- [Free Uptime & response check](https://lemwatch.com/tools/website-uptime)
- [ERR_CONNECTION_TIMED_OUT on AWS S3](https://lemwatch.com/errors/err-connection-timed-out/in-aws-s3)
- [Website monitoring overview](https://lemwatch.com/website-monitoring)
