Cloudflare Error 522: Connection Timed Out

Cloudflare’s TCP connection to your origin timed out — the origin didn’t answer at all.

Seen on: Cloudflare

Meaning

Unlike 521 (refused), 522 means packets were dropped or the origin was too overloaded to complete the handshake within ~15 seconds.

Common causes

  • Origin overloaded
  • Firewall silently dropping Cloudflare IPs
  • Wrong origin IP
  • Network/routing issues at the host
  • Keep-alive disabled causing connection churn

⚡ Quick fix

  1. Check origin CPU/RAM/connection counts
  2. Allow-list Cloudflare IPs (drop rules cause timeouts)
  3. Confirm DNS origin IP
  4. Contact your host about network issues

Detailed fix by platform

Cloudflare

  1. Use the Ray ID and traceroute from the origin to Cloudflare to spot routing issues.

How to diagnose

  1. Load — Is the origin saturated?
  2. Firewall — Drop rules for Cloudflare IPs?
  3. DNS — Right origin IP?

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.