Skip to content
HTTP status codes3 min read

Cloudflare error 523: Origin is unreachable

523: Origin is unreachable

Short answer

Cloudflare error 523 means Cloudflare can't find a route to your origin server, so it can't even start a connection. It's usually an A or AAAA record in Cloudflare pointing to a wrong, old or private IP address, a server that's offline, or a routing problem between Cloudflare and the data center.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What causes error 523
  2. Fixing it as a visitor
  3. Fixing it as the site owner
  4. Prevention
  5. On ArabyHost

Before Cloudflare can connect to your server, it needs a network path to the address in your DNS records. With a 523 that path doesn’t exist: the address is unreachable from Cloudflare’s network. So the error isn’t about your site’s settings or code; it’s about the address or the network. In practice the most common cause is moving to a new host while Cloudflare still has the old address.

What causes error 523

  • An A record with the wrong address: the old host’s IP after a migration, or a typo.
  • A private address: such as 192.168.x.x or 10.x.x.x, which belong to local networks and can’t be reached from the internet.
  • A stale AAAA record pointing to an IPv6 address the site doesn’t run on.
  • The server is offline: the old server was shut down, or the data center has an outage.
  • A routing problem between Cloudflare’s network and the hosting provider’s network.

Fixing it as a visitor

Try again later. If it persists, send the site owner the URL and the Ray ID at the bottom of the page.

Fixing it as the site owner

  1. Find the correct address: open cPanel and copy the server’s IP from the General Information panel.
  2. Review the records in Cloudflare: open DNS → Records and check the A records for the root domain, www, and any important subdomains. Every A record should hold the current server’s address.
  3. Delete incorrect AAAA records if your server doesn’t use the IPv6 address in them, or confirm the address with your host.
  4. Test the server directly from your computer:
curl -sv --connect-timeout 10 --resolve example.com:443:203.0.113.10 https://example.com/ -o /dev/null

Replace 203.0.113.10 with your server’s address. If the server answers, the address is right and working, and the problem is most likely the records or Cloudflare’s routing. 5. See what the world sees: use the DNS lookup tool to view your domain’s published records. Proxied records show Cloudflare’s addresses rather than your server’s, which is normal. 6. If the records are right and the server answers directly, the problem is routing between Cloudflare and the data center. Ask your host’s support to check the network, and send the Ray ID and time to Cloudflare as well.

If you don’t use Cloudflare and the domain still doesn’t open your site, see domain not pointing to hosting.

Prevention

  • When migrating, get the site running on the new server first, then update the A and AAAA records in Cloudflare, and only close the old hosting once everything checks out.
  • Keep a list of every record that points to your server, including subdomains.
  • Only add AAAA records if your host has actually given you an IPv6 address.

On ArabyHost

You can connect your domain straight to our nameservers ns1.arabicode.com and ns2.arabicode.com, which creates the essential records automatically, or keep DNS at Cloudflare and put the IP shown in cPanel in the A record. The data center is in Germany, and if you need network reachability to the server checked, contact our Arabic-speaking support team. If you’re moving to us, free migration help is available on the migration page. See also using Cloudflare with your hosting.

FAQ

What's the difference between 523, 521 and 522?

With 523 Cloudflare can't find a route to the address at all. With 521 it reaches the address and the server refuses. With 522 it reaches it but the server doesn't answer in time.

Can an AAAA record cause a 523?

Yes. If there's a stale AAAA record, Cloudflare may try to connect over IPv6 to an address that doesn't work. Delete it if your server doesn't use that address.

I changed the A record in Cloudflare. Do I wait 48 hours?

No. For proxied records (orange cloud), Cloudflare applies the change across its network very quickly because visitors connect to Cloudflare itself. If the error persists after a few minutes, check the address itself.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.