523 Origin Is Unreachable
Cloudflare could not contact your origin server because it has no working network path to the address you gave it.
What 523 means
A 523 is a routing failure. Cloudflare looked up the origin address from your DNS records, tried to send packets towards it, and a network device along the way had no route to that address. Nothing was refused and nothing timed out at the server, because the packets never got near it.
It is the rarest of the 52x family, and its causes are few. Either the address is wrong, or the network between Cloudflare and the origin is.
Start with the DNS record
Open the DNS settings for the zone in Cloudflare and compare the A and AAAA records with the server's current public address. This is the first thing Cloudflare tells you to confirm, and it goes wrong in ordinary ways:
- The hosting provider moved the site to a new IP address, or you migrated hosts, and the record was not updated.
- A cloud instance was stopped and started and came back with a different public address, because it had no reserved (static) IP.
- An AAAA record points at an IPv6 address the server no longer has, while the A record is correct. Check both record types.
Correct the record, then request the page again.
If the address is right
- Check that the origin is reachable from elsewhere.
ping,tracerouteormtrto the address from a machine outside your network. If nobody can reach it, the fault is with the host or its upstream provider: an outage, a withdrawn route, a suspended server. - Check the return path. A server has to be able to send packets back to Cloudflare. Cloudflare documents one specific trap on AWS: a VPC route table with an entry as broad as
172.0.0.0/8, intended for private addresses, also captures172.64.0.0/13, which is a Cloudflare range. Replies to Cloudflare are then sent to a private destination and lost. Narrow the route, or add a more specific one that sends172.64.0.0/13to the internet gateway. - Ask the hosting provider. Give them the time of the errors and a traceroute. Cloudflare suggests an MTR from the origin to a Cloudflare IP address taken from your server logs, one that was connecting successfully before the problem began.
523 compared with 521 and 522
| Code | In everyday terms | Usual fix |
|---|---|---|
| 523 | The address cannot be found on the network | Correct the origin IP in DNS, or repair routing |
| 522 | The address exists; nobody answers | Stop a firewall dropping Cloudflare, or relieve an overloaded server |
| 521 | Somebody answers and says no | Start the web server or open the port |
In practice a wrong IP address can show up as any of the three, depending on what happens to exist at that address. Whichever code you see, verifying the DNS record takes a minute and is worth doing first. If you are only visiting the site, there is nothing to fix on your side; check whether it is down for everyone and come back later.
Example 523 response
HTTP/2 523
date: Sat, 14 Nov 2026 10:03:18 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
cf-ray: 8e2a3bc45f7e2d19-CDGLike every 52x response, this one is produced at Cloudflare's edge. The origin never saw the request, so there is nothing to look for in its access log.
Documented in Cloudflare docs: Error 523.
Questions
What does error 523 Origin is unreachable mean?
Cloudflare could not reach the website's origin server over the network. There is no route to the IP address in the site's DNS records, usually because the address is out of date or because of a routing problem at the hosting provider.
How do I fix a 523 error?
Confirm that the A and AAAA records in Cloudflare DNS contain the server's current public IP address and correct them if not. If they are right, test whether the server is reachable from outside and ask the hosting provider to check routing.
What is the difference between 522 and 523?
With a 523, packets cannot be routed to the origin's address at all. With a 522, the address is routable but the server does not complete the connection in time. A 523 points at DNS records or network routing; a 522 at firewalls or server load.
Is a 523 error a problem with my computer or connection?
No. You reached Cloudflare without trouble, which is why you can see the error page. The break is between Cloudflare and the server that hosts the website, and only the site owner or hosting provider can repair it.