How to Fix ‘Safari Cannot Open Page Because Network Connection Was Lost’ on Mac

Surfing the web in Safari on macOS is typically swift and responsive, but users frequently encounter an abrupt page-load failure: Safari Can’t Open the Page. Safari can’t open the page because the network connection was lost (often accompanied by system error code kCFErrorDomainCFNetwork 303). Paradoxically, other installed web browsers (like Google Chrome or Firefox) on the exact same Mac may load the identical webpage without any hesitation.

When Safari alone drops network connections, the fault rarely lies with your internet provider or router. Instead, Safari’s underlying CFNetwork and WebKit frameworks are encountering expired socket pools, corrupted proxy configurations, misconfigured DNS over HTTPS resolvers, or interference from third-party VPN content filters. Use the proven steps below to restore seamless web navigation in Safari.

Flush DNS Resolver Cache via Terminal

macOS maintains a local mDNSResponder cache to resolve domain names quickly. If a stale IP address or broken socket state is cached, Safari terminates connection attempts:

  1. Press Command + Space, type Terminal, and press Enter.
  2. Paste the following command into the terminal window:
    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Press Enter, input your macOS administrative user password (no characters will display on screen), and press Enter again.
  4. Return to Safari and refresh the blocked webpage.

Clear Safari Website Data and Cache

Stale Service Workers, cookies, and cached HTTP/2 headers can cause WebKit connection drops:

  1. With Safari open, click Safari in the top menu bar and select Settings (or Preferences).
  2. Navigate to the Privacy tab.
  3. Click the Manage Website Data button.
  4. Click Remove All to purge accumulated tracking scripts and offline site caches.
  5. Next, click the Advanced tab and ensure Show features for web developers is checked.
  6. Click Develop in the top menu bar and select Empty Caches (or press Option + Command + E).
  7. Quit and relaunch Safari.

Check for Stale Network Proxies in macOS System Settings

Adware, corporate monitoring profiles, or uninstalled VPN software often leave ghost HTTP/HTTPS proxy entries enabled in your network adapter:

  1. Open System Settings and click Network in the left pane.
  2. Click on your active connection (Wi-Fi or Ethernet), then click Details.
  3. In the modal window, click Proxies in the left sidebar.
  4. Ensure that all proxy protocols – including Web Proxy (HTTP), Secure Web Proxy (HTTPS), and SOCKS Proxy – are toggled Off unless your corporate network explicitly mandates them.
  5. Click OK to apply changes.

Disable Conflicting Content Blockers and iCloud Private Relay

iCloud Private Relay routes Safari web traffic through two separate encrypted internet relays. If an intermediate Apple relay node experiences packet dropouts, Safari will drop connections:

  1. In System Settings > Apple Account (Profile) > iCloud, select Private Relay.
  2. Temporarily toggle Private Relay Off.
  3. In Safari Settings > Extensions, uncheck any third-party ad blockers or privacy filters.
  4. Test loading the webpage again to verify whether the connection stabilizes.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.