sodcalculator

10 Tech How-To

Fix Error Code in Chrome, Edge, Safari or Any Browser

Guide 10-24159 · Updated · Step by step

Browser error codes like ERR_CONNECTION_TIMED_OUT, ERR_SSL_PROTOCOL_ERROR, or ERR_NAME_NOT_RESOLVED can appear in Chrome, Edge, Safari, Firefox, or any other browser, and they almost always point to a network, DNS, cache, or extension problem rather than a broken browser. The fix is usually the same across browsers: refresh the page, clear the cache, reset the network, or disable extensions—but the exact steps differ slightly by browser. This guide explains what these codes mean, how to fix them step by step, and how to prevent them from coming back.

What Browser Error Codes Actually Mean

When a browser fails to load a page, it displays an error code that helps identify the cause. These codes are not random—they are part of the browser’s networking layer (usually based on Chromium’s network stack for Chrome, Edge, and many others, or WebKit for Safari). Common codes include:

  • ERR_NAME_NOT_RESOLVED – DNS lookup failed; the domain name couldn’t be translated to an IP address.
  • ERR_CONNECTION_REFUSED – The server is reachable but is actively refusing the connection (often the site is down or blocking you).
  • ERR_CONNECTION_TIMED_OUT – The server didn’t respond in time; likely a network or firewall issue.
  • ERR_SSL_PROTOCOL_ERROR – A problem with the SSL/TLS certificate or handshake.
  • ERR_TOO_MANY_REDIRECTS – The site is stuck in a redirect loop.
  • ERR_CACHE_MISS – The page requires re-submitting a form or the cache is corrupted.

These codes are not browser-specific—they appear across Chrome, Edge, Brave, Opera, and similar Chromium-based browsers. Safari uses different wording (like “Safari Can’t Connect to the Server”) but the underlying causes are the same.

First Steps: Quick Fixes That Work in Every Browser

Before diving into deep troubleshooting, try these simple steps—they resolve a surprising number of error codes:

  1. Hard refresh the page. Press Ctrl+F5 (Windows/Linux) or Cmd+Shift+R (Mac) to bypass the cache. In Safari, press Option+Cmd+R.
  2. Check if the site is down for everyone. Use a service like DownForEveryoneOrJustMe.com (or try opening the site on your phone’s mobile data).
  3. Restart your router and modem. Unplug them for 30 seconds, plug them back in, and wait for the lights to stabilize.
  4. Disable your VPN or proxy. VPNs and proxy extensions can interfere with connections, especially for regional sites.
  5. Try a different browser. If the error only appears in one browser, the problem is likely that browser’s cache, extensions, or settings.

If these don’t work, move on to the more specific fixes below.

How to Clear Cache and Cookies in Chrome, Edge, and Safari

Corrupted cache files are a common cause of error codes like ERR_CACHE_MISS or ERR_SSL_PROTOCOL_ERROR. Clearing them is safe—you’ll just have to log in to some sites again.

  • Chrome: Click the three-dot menu → More tools → Clear browsing data. Choose “All time” in the time range, check “Cached images and files” and “Cookies and other site data,” then click Clear data.
  • Edge: Click the three-dot menu → Settings → Privacy, search, and services → under “Clear browsing data,” click Choose what to clear. Select “Cached images and files” and “Cookies and other site data,” then click Clear now.
  • Safari: Go to Safari → Settings (or Preferences) → Privacy → click Manage Website Data → Remove All. Alternatively, you can clear the cache by going to Develop menu (enable it in Advanced settings) and selecting Empty Caches.

After clearing, restart the browser and try the page again.

Fixing DNS and Network Issues

DNS errors (ERR_NAME_NOT_RESOLVED) are often caused by your internet service provider’s DNS servers being slow or down. You can switch to a public DNS like Google (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1). Here’s how:

  • Windows: Go to Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings. Right-click your active connection → Properties → select “Internet Protocol Version 4 (TCP/IPv4)” → Properties → choose “Use the following DNS server addresses” and enter the new DNS.
  • Mac: Go to System Settings → Network → select your network → Details → DNS → click the “+” and add the DNS servers.
  • Router: Log into your router’s admin page (usually 192.168.1.1 or 192.168.0.1) and find the DNS settings under WAN or Internet. Change them to the public DNS.

After changing DNS, flush your computer’s DNS cache by opening a command prompt (Windows) or terminal (Mac) and typing:

  • Windows: ipconfig /flushdns
  • Mac: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

This forces your system to use the new DNS immediately.

Disabling Extensions and Resetting Browser Settings

Extensions can interfere with page loading, especially ad-blockers, privacy tools, or VPN extensions. To test, open the browser in Incognito/Private mode (extensions are usually disabled there by default). If the page loads, an extension is the culprit.

  • Chrome: Go to Settings → Extensions (or type chrome://extensions in the address bar) and toggle off all extensions. Re-enable them one by one to find the problematic one.
  • Edge: Type edge://extensions in the address bar and toggle off extensions.
  • Safari: Go to Safari → Settings → Extensions and uncheck all.

If the error persists even with extensions off, you can reset the browser to its default state—this clears settings, startup pages, and search engines, but keeps your bookmarks and saved passwords if you choose that option. In Chrome and Edge, go to Settings → Reset settings → Restore settings to their original defaults. In Safari, there’s no single reset button, but you can clear history and website data, and reset Safari by going to Safari → Settings → Privacy → Manage Website Data → Remove All.

SSL and Certificate Errors

Errors like ERR_SSL_PROTOCOL_ERROR or “Your connection is not private” often stem from incorrect system time, outdated browser, or antivirus software intercepting traffic. Here’s what to do:

  1. Check your system date and time. If your clock is off by more than a few minutes, SSL certificates fail. Right-click the clock → Adjust date/time → enable “Set time automatically.”
  2. Update your browser. Outdated browsers lack the latest security patches and may not support newer TLS versions.
  3. Temporarily disable antivirus or firewall. Some security suites scan HTTPS traffic and can break the handshake. If disabling fixes it, adjust the antivirus settings to allow the browser.
  4. Clear the SSL state. On Windows, go to Control Panel → Internet Options → Content tab → Clear SSL state. This clears the cached certificates.

If the error only appears on one specific site, the website’s certificate may be expired or misconfigured—you can’t fix that from your side, but you can try accessing the site via a different browser or wait for the site owner to fix it.

Frequently Asked Questions

Why do I get ERR_CONNECTION_TIMED_OUT only on one website?

This usually means the website’s server is down, overloaded, or blocking your IP address. Try accessing the site from a different network (like your phone’s hotspot) to confirm. If it works there, your ISP or router may be blocking it—try changing your DNS or using a VPN (if allowed).

How do I fix ERR_NAME_NOT_RESOLVED on Chrome?

This error means the domain name can’t be resolved to an IP. First, clear your DNS cache (ipconfig /flushdns on Windows). If that doesn’t work, change your DNS servers to a public one like Google (8.8.8.8) or Cloudflare (1.1.1.1). Also check that you haven’t mistyped the URL and that the site actually exists.

Can browser error codes be caused by malware?

Yes, some malware or browser hijackers can redirect you to fake error pages or interfere with your network settings. If you see unusual error codes or constant redirects, run a malware scan with Windows Defender or a reputable tool. Also check your browser’s proxy settings—malware sometimes sets a rogue proxy.

Why does Safari not show error codes like Chrome?

Safari uses different, more user-friendly messages like “Safari Can’t Connect to the Server” instead of technical codes. The underlying causes are the same, but Safari hides the technical details. To see more info, you can enable the Develop menu (Safari → Settings → Advanced → “Show features for web developers”) and check the console for errors.

Is it safe to clear my browser cache and cookies?

Yes, it’s safe. Clearing cache and cookies will log you out of most websites and may make pages load slightly slower on first visit, but it won’t delete your bookmarks, history, or saved passwords (unless you specifically choose to). It’s a common troubleshooting step recommended by browser support teams.

Will resetting my browser fix all error codes?

Resetting the browser fixes errors caused by corrupted settings, extensions, or cache. It won’t fix errors caused by network issues, DNS problems, or website server outages. If the error persists after a reset, the problem is likely outside the browser.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →