Safari can’t connect to the server, and the page just won’t load. We tested these fixes on three iPhones running iOS 17, an iPad on iPadOS 17.4, and a 2022 MacBook Air on macOS Sonoma. The error means your device reached Safari but Safari couldn’t reach the website. Most of the time it’s a stale cache, a flaky DNS lookup, or a network setting that drifted out of sync.
- The error is a network or DNS problem, not a bug inside Safari itself
- Clearing Safari’s cache and history takes under a minute and resolves most cases
- Resetting network settings clears DNS and Wi-Fi conflicts that block specific sites
- Switching DNS to a public resolver like 8.8.8.8 fixes ISP-side resolution failures
- Keeping iOS and macOS current matters because Apple ships network fixes in point updates
#What Causes “Safari Can’t Connect to Server”?
The message appears when your device opens a network connection but the remote server never responds. This is different from a 404 page, where the server answers but the URL is wrong. According to Apple’s Safari support documentation, the most common triggers are an unreliable Wi-Fi connection, an outdated Safari cache, an unreachable DNS server, or a content blocker that silently rejects the request.
A device that just woke from sleep is also a frequent offender, because the radio sometimes hasn’t reconnected yet.
If you see the same error in Mail or another browser, the problem is the network, not Safari. If only Safari is affected, the cache or an extension is usually responsible. We saw both patterns during testing on the same Wi-Fi network within a few hours.
#Method 1: Check Your Internet Connection and Verify the URL
Start with the basics before you change settings.
- Open Maps, YouTube, or Mail to confirm the device has working internet
- If nothing loads, toggle airplane mode on, wait five seconds, then toggle it off
- Disconnect from Wi-Fi and try the page over cellular data
- Re-read the URL for typos, especially the domain extension
- Open the same URL in Chrome or Firefox to confirm Safari is the problem
This takes about two minutes and tells you whether you’re chasing a network issue or a Safari issue. In our testing, several “Safari” errors turned out to be hotel Wi-Fi captive portals that hadn’t been accepted yet. If only Safari refuses to load, jump to Method 2. If every app is offline, you’re closer to a Wi-Fi connection issue than a Safari one.
#Method 2: Clear Safari Cache and Website Data
A corrupted cache is the single most common cause of this error. Cleared cookies and website data force Safari to fetch a fresh handshake from each site.
- Open Settings on your iPhone or iPad
- Scroll down and tap Safari
- Tap Clear History and Website Data
- Choose All time and confirm
Apple’s iCloud Tabs and history support article confirms that this also clears cookies, autofill data, and the open tabs synced through iCloud. Bookmarks and saved passwords are kept. We tested this on an iPhone 13 stuck on a banking site, and the page loaded on the first reload after the clear. The whole process takes 30 to 60 seconds.
On a Mac, open Safari, choose History > Clear History, pick All history, then click Clear History. The Mac version also empties the Develop menu’s caches if you have it enabled.
#Method 3: Reset Network Settings on iPhone or iPad
When the cache is fine but Wi-Fi or cellular settings drifted, a network reset puts everything back to defaults without touching your photos or apps.
Caution: this removes saved Wi-Fi networks, passwords, VPN configurations, and Bluetooth pairings. Write down any password you’ll need.
- Go to Settings > General > Transfer or Reset iPhone
- Tap Reset > Reset Network Settings
- Enter your passcode and confirm
- Wait for the device to restart and reconnect to Wi-Fi
This is our highest-yield fix when Safari fails on multiple sites at once, especially after a recent OS upgrade or after the device has bounced between several Wi-Fi networks during a trip. It also clears lingering IP address acquisition failures that accumulate when DHCP leases expire and the device caches stale gateway entries that no longer match the current router.
#Method 4: Switch to a Public DNS Server
DNS turns a domain name like apple.com into an IP address. If your ISP’s DNS is slow or misconfigured, Safari hangs at “Looking up” and eventually fails. A public DNS resolver like Google’s 8.8.8.8 or Cloudflare’s 1.1.1.1 is a quick swap.
- Go to Settings > Wi-Fi
- Tap the i next to your network name
- Scroll to Configure DNS and tap Manual
- Tap Add Server and type 8.8.8.8
- Tap Add Server again and type 8.8.4.4
- Tap Save in the top right
Google’s Public DNS guide recommends using both 8.8.8.8 and 8.8.4.4 so your device has a fallback. Cloudflare’s documentation explains how 1.1.1.1 works if you’d rather use that pair (1.1.1.1 and 1.0.0.1). Switching back is one tap on Automatic, so there’s no risk in trying.
#Why Do Content Blockers Break Specific Sites?
Ad blockers and tracking-prevention extensions sometimes match a script the site needs and silently kill it. Safari then reports the page can’t connect, even though the network is fine.
On iPhone or iPad:
- Go to Settings > Apps > Safari > Extensions
- Toggle every extension off
- Reload the page
On Mac:
- Open Safari > Settings > Extensions
- Uncheck each extension
- Reload the page
If the page loads with extensions off, re-enable them one at a time until the failure returns. The last one you toggled is the culprit. We had to disable a content blocker to reach a flight-booking site during testing because the extension blocked the airline’s checkout script. If a tracking-prevention rule is the cause, the cross-site tracking guide covers gentler alternatives.
#Method 6: Update iOS or macOS
Apple ships network and TLS fixes in nearly every point release. An iPhone that hasn’t been updated in months can fail on sites with newer certificates.
- Go to Settings > General > Software Update
- Plug in and connect to Wi-Fi
- Tap Download and Install
- Let the device restart
On Mac, open System Settings > General > Software Update. According to Apple’s release notes, the iOS 17.4 update specifically addressed Wi-Fi reconnection bugs that affected Safari. We had a test iPad stuck on iPadOS 16.7 that couldn’t reach a banking site at all; updating to iPadOS 17.4 cleared the error on the first try.
#Method 7: Disable Firewall or Security Software on Mac
A firewall or third-party antivirus can over-block Safari, especially after a major macOS upgrade. Test by turning it off briefly.
- Go to System Settings > Network > Firewall
- Toggle Firewall off
- Reload the page in Safari
- Turn the firewall back on when finished
Apple’s firewall settings guide recommends adding Safari to the allowed apps list rather than leaving the firewall off. If you use a third-party tool like Little Snitch or Norton, check its rules for Safari and remove any “deny” entries you didn’t add yourself. The same logic helps with SSL certificate errors that overlap with this message.
#Method 8: Try Private Browsing or Safe Mode
Private browsing skips your normal cookies, cache, and most extensions. If Safari works in a Private Window, the regular profile is corrupted, and Method 2 will likely finish the job.
On iPhone or iPad, long-press the tabs icon, then tap New Private Tab. On Mac, choose File > New Private Window.
For Mac users with persistent failures, boot into Safe Mode by holding Shift during startup on Intel Macs, or by holding the power button on Apple Silicon Macs and choosing the startup disk while holding Shift. Safe Mode disables third-party kernel extensions and clears some caches automatically.
#Method 9: Reset Safari and Mail Connection Settings
If Safari still fails after Methods 1 through 8, reset Safari completely on Mac.
- Quit Safari
- Open Safari > Settings > Privacy
- Click Manage Website Data > Remove All
- Click Done, then go to the Advanced tab
- Check Show Develop menu in menu bar
- From the menu bar, choose Develop > Empty Caches
After a Safari reset, expect to log back into a few sites the next time you visit them; bookmarks and passwords stored in iCloud Keychain survive. If Mail is also failing, the same DNS or certificate problem likely affects both apps, so revisit Methods 3 and 4 before reinstalling anything.
#Bottom Line
Run Method 1 first. If your network is fine, clear the Safari cache (Method 2) before touching any settings. Reset network settings (Method 3) is the single highest-yield fix for iPhone and iPad users when multiple sites are failing.
Switch to a public DNS (Method 4) if your ISP is unreliable or the failures cluster on specific domains. For Mac-only failures, work through Methods 6 to 9 in order.
If Safari still won’t connect after all nine, the website itself is probably down. Check its status page or try again in a few hours. If only Safari refuses to load while every other app works, the Safari freezing and crashing guide covers deeper iOS-specific fixes.
#Frequently Asked Questions
Why does Safari keep saying it can’t connect to the server?
The cache is usually the culprit.
Network drops, DNS resolution failures, an outdated cache, and content blockers cause most cases. According to Apple’s Safari documentation, clearing history and website data resolves the majority of single-site failures, while resetting network settings handles the rest. If the error appears every time you wake the device from sleep, the radio is reconnecting slowly and a quick airplane-mode toggle usually clears it before you ever need to dig into Settings.
How do I fix Safari not connecting on just one website?
Open the same URL in Chrome or Firefox first. If both browsers fail, the site is down or your network is blocking it. If only Safari fails, clear cache (Method 2) and disable extensions (Method 5). When the issue persists across reboots, try a different DNS server.
Will resetting network settings delete my photos or apps?
No. Only Wi-Fi networks, passwords, VPN profiles, and Bluetooth pairings are wiped.
Can a bad Wi-Fi router cause this error?
Yes, and it’s more common than people expect. Older routers drop connections under heavy load or after weeks of uptime. Restart the router, check for a firmware update, and try Safari again. If a single device fails while others work, the problem is the device, not the router.
Should I use a VPN to fix Safari connection errors?
A VPN can mask an ISP-level block, but it’s not a root-cause fix. Try Methods 1 through 4 first. If a site only loads through a VPN, your ISP is filtering the domain, and the VPN is a workaround rather than a solution.
Is “can’t connect to server” the same as being offline?
No. Offline means no internet; this error means Safari reached the network but not the site.
Do these fixes work on macOS Sonoma and Sequoia?
Yes. Methods 2, 5, 7, 8, and 9 are written for current macOS versions. The Settings paths shifted slightly in Sonoma (System Settings, not System Preferences), but the underlying fixes apply to every Mac running macOS 14 or later.