How HTTP Works
5xx · Server errorNon-standard · Cloudflare
< HTTP/1.1 523 Origin Is Unreachable

523 Origin Is Unreachable

Cloudflare-specific error when the origin server's IP address is unreachable. Learn about DNS and routing issues causing 523 errors.

Reviewed 2 min readintermediate2 sourcesTry itMarkdown
Cacheable
No
Retry?
No, until DNS or routing is fixed
Usually sent by
Cloudflare edge
Spec
Cloudflare error 523
Often confused with
521, 522
On this page

TL;DR: Cloudflare has no working network path to your origin IP. Check that the DNS record in Cloudflare points to a public, current address (not 10.x, 172.16-31.x or 192.168.x) and that your host’s routing or CDN-facing network is healthy.

What it means

523 means Cloudflare could not route to the IP your DNS record resolves to. Unlike 522, where Cloudflare reaches the network and waits, here the destination cannot be reached at all, so the error is usually quick. Typical causes:

  • The A/AAAA record holds a private (RFC 1918) address or a stale IP after a migration.
  • The record is an IPv6 address the origin network does not route to Cloudflare.
  • A routing or BGP problem at the hosting provider, or an ISP outage.
  • The origin is behind a tunnel or load balancer that was deleted.

Who sent it?

server: cloudflare, a cf-ray header and the page “Origin is unreachable”. Your servers see nothing.

Fix it

  1. Check what Cloudflare resolves. In the dashboard, DNS, confirm the record for the hostname (and any CNAME target) is correct and proxied only if intended.

    dig +short example.com @1.1.1.1      # proxied records show Cloudflare IPs
    dig +short origin.example.com        # an unproxied record shows the origin IP
  2. Reject private addresses. Public Cloudflare cannot reach 192.168.1.10. Use a public IP or Cloudflare Tunnel (cloudflared) for origins that have none.

  3. Test the IP directly from outside your network:

    ping -c 3 203.0.113.10
    mtr -rwc 20 203.0.113.10
    curl -sv --resolve example.com:443:203.0.113.10 https://example.com/ -o /dev/null
  4. Check AAAA records. An AAAA record pointing at an unreachable IPv6 address breaks Cloudflare’s IPv6 path even though IPv4 works. Remove it or fix the origin’s IPv6.

  5. Contact the hosting provider if traceroutes die inside their network; check their status page for outages.

  6. Cloud load balancers. Verify the ALB/ELB, Elastic IP or forwarding rule still exists and the subnet route table has an internet gateway.

523 vs the others

CodeMeaning
521Reached the host; connection refused
522Reached the network; no reply (timeout)
523No route to the origin IP at all
530Cloudflare error response with an error 1xxx code in the body (for example 1016 Origin DNS error)

For 530 and 1xxx codes the number shown in the page body, such as “Error 1016”, is the one to look up in Cloudflare’s documentation.

Frequently asked questions

What does Cloudflare error 523 mean?

A 523 error means Cloudflare cannot reach your origin server at all. This is typically a DNS or routing issue where the origin IP address is unreachable.

How do I fix a 523 error?

Verify your DNS records in Cloudflare point to the correct origin IP, check that your origin server IP is publicly routable, and ensure no network issues between Cloudflare and your server.

What causes 523 errors?

Common causes include incorrect origin IP in DNS settings, origin server IP changed, network routing issues, or origin server on a private network not accessible from internet.

How do I check my Cloudflare DNS settings?

Log into Cloudflare dashboard, go to DNS settings, and verify the A or AAAA record for your domain points to your actual origin server IP address.

Sources

  1. Cloudflare: 523 Errordevelopers.cloudflare.com
  2. Cloudflare HTTP Status Codesdevelopers.cloudflare.com

Keep going

Browse /search