Home/Blog/ERR_CONNECTION_TIMED_OUT / 504: 8 Fixes (2026)

ERR_CONNECTION_TIMED_OUT / 504: 8 Fixes (2026)

Browser window with a stalled loading spinner and a broken hourglass, concept of connection timeout

ERR_CONNECTION_TIMED_OUT in Chrome — or a 504 Gateway Timeout on the server side — means the same thing: the browser waited (usually ~30 seconds) for a response that never came, and gave up. The page is not “broken” so much as “too slow to answer”. This 2026 guide’s ERR_CONNECTION_TIMED_OUT fix covers both sides of the problem: visitor-side network issues and site-owner server issues, with eight proven fixes.

What Causes ERR_CONNECTION_TIMED_OUT / 504 Errors?

The two errors fail at different layers. A 504 is an actual HTTP response: a gateway reached the upstream server, waited, and reported the timeout — the edge is up, the backend is slow. ERR_CONNECTION_TIMED_OUT is the browser failing to open any connection at all — a network, DNS, or firewall problem. Common causes:

  • Slow backend task (504): A plugin or theme kicks off something that outlives the gateway timeout — heavy imports, backups, external API calls, expensive database queries, long wp-cron jobs, bloated page builders.
  • Server overload: Traffic spikes, DDoS/bot floods, or an underpowered hosting plan — the server cannot answer in time.
  • PHP execution limits: max_execution_time too low for the task, or PHP-FPM workers all busy.
  • DNS problems (timeout): Unresponsive DNS servers or incorrect IPs mean the browser cannot even find the server.
  • Firewall/security blocking: Overly strict firewall rules, security plugins, or ISP filtering blocking or delaying the connection.
  • CDN/proxy issues: A misconfigured CDN or proxy between you and the origin adding delays or failing.
  • Local network problems: Router issues, proxy misconfiguration, or VPN interference on the visitor’s side.

How to Fix ERR_CONNECTION_TIMED_OUT / 504

First determine whose side it is on: try another site — if all sites time out, it is your connection; if only one site fails, it is that site’s server. Visitor-side fixes first:

  1. Reload, wait, and retry. Timeouts are often transient — a momentary traffic spike or a slow query. Wait a minute and reload (Ctrl+R). If it was temporary, you are done. (Do not refresh on a payment page — the payment may have succeeded before the timeout.)
  2. Restart your router and check your connection. Power-cycle the router/modem (unplug 30 seconds). Disable any VPN or proxy temporarily and retry — misconfigured proxies are a classic timeout cause (check LAN settings → disable “automatically detect settings”). More network fixes are on the KamiWeb blog.
  3. Flush DNS and switch resolvers. Windows: ipconfig /flushdns; macOS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. If timeouts persist, switch to Cloudflare 1.1.1.1 or Google 8.8.8.8 — unresponsive ISP DNS is a frequent hidden cause.

Network cable plugging back in with a speed gauge accelerating into green, concept of restored connection

Site-owner fixes (if your WordPress site is the one timing out):

  1. Deactivate plugins and test the theme. Rename wp-content/plugins via FTP to disable everything. If timeouts stop, reactivate one by one — suspects are backup plugins, security scanners, and anything making external API calls. Switch to a default theme to rule out bloated theme code. Replace offenders with lean options from our free WordPress plugins collection.
  2. Raise PHP limits and gateway timeouts. Increase max_execution_time to 300 in your hosting panel and WP_MEMORY_LIMIT to 256M in wp-config.php. On Nginx (VPS), raise proxy_read_timeout/fastcgi_read_timeout and FPM’s request_terminate_timeout — longer timeouts buy time while you fix the slow backend.
  3. Pause the CDN and check for overload. Temporarily disable Cloudflare/your CDN: if the site responds directly, the CDN layer is the problem. Check server CPU/RAM graphs for overload, block aggressive bots, and consider upgrading the hosting plan if timeouts happen under normal traffic.
  4. Enable debugging and read the logs. Turn on WP_DEBUG_LOG (display off) and watch wp-content/debug.log for the request that stalls. Check the server error log for timeout entries. The log usually names the slow plugin, query, or API call. Keep everyday utilities handy via the KamiWeb free tools.

How to Prevent Timeout Errors

Fixing a timeout once is good; stopping the next one is better. Set up uptime monitoring (a free monitor that checks your site every few minutes) so you learn about timeouts before visitors complain. Keep plugins and themes updated — outdated code is the most common source of slow queries and hung API calls. Enable page caching so most requests never touch PHP at all, and schedule heavy jobs (backups, imports, bulk emails) for low-traffic hours. If your host offers resource-usage graphs, glance at them monthly: steadily rising CPU or memory usage is an early warning that your plan is getting too small. A fast, well-cached site with lean plugins rarely times out — prevention is mostly just good maintenance.

Conclusion

Timeouts mean “too slow to answer”: visitors should reload, restart the router, flush DNS, and disable VPN/proxy; site owners should hunt the slow plugin or query, raise execution limits, and make sure the server is not overloaded. Fix the slow backend rather than just extending timeouts — speed is the real cure. For more free resources, start at the KamiWeb homepage.