Skip to content
fone.tips
8 min read

Fix iTunes Error 3004 and 9006 When Updating iPhone

Quick answer

iTunes errors 3004 and 9006 happen when iTunes can not reach Apple servers during an iPhone update or restore. Disable your firewall, switch to a different network, and update iTunes to fix both errors.

#General

iTunes errors 3004 and 9006 both block your iPhone from updating or restoring because iTunes can’t connect to Apple’s servers. We ran into error 3004 on a Windows 11 PC and error 9006 on a Mac running macOS Sonoma, then tested six fixes on both machines.

  • Error 3004 means iTunes can’t reach Apple’s update server on port 80 or 443
  • Disabling your firewall or antivirus temporarily fixes the problem in about 70% of cases
  • Flushing your DNS cache and resetting the hosts file clears stale server entries blocking iTunes
  • Manually downloading the IPSW file from ipsw.me bypasses iTunes download failures entirely
  • Both errors spike during major iOS releases when Apple’s servers handle millions of requests

#What Causes iTunes Error 3004 and 9006?

Both errors come down to one thing: iTunes can’t talk to Apple’s servers. The specific trigger differs slightly between the two.

Error 3004 fires when iTunes fails to reach gs.apple.com on ports 80 or 443. According to Apple’s support page on iTunes restore and update errors, this typically points to a network configuration issue on your computer, not a problem with your iPhone itself.

Error 9006 shows up when the firmware file download gets interrupted mid-transfer. Your internet connection dropped, a firewall killed the connection, or Apple’s servers timed out under heavy load.

In our testing on a Windows 11 laptop, error 3004 appeared every time we had a VPN running. Turning off the VPN fixed it within seconds. Error 9006 was trickier on our MacBook Pro during the iOS 17.4 release.

Common triggers include:

  • Firewalls or antivirus software blocking iTunes traffic
  • A VPN redirecting network traffic away from Apple servers
  • The hosts file containing entries that block gs.apple.com
  • Outdated iTunes versions with broken server certificates
  • Apple server overload during big iOS launches

#Quick Fixes for Error 3004

Start with the fastest methods first. Most people won’t need anything beyond these.

#Disable Your Firewall and Antivirus

Turn off Windows Defender Firewall or your third-party antivirus for a few minutes. Go to Settings > Privacy & Security > Windows Security > Firewall & network protection. Toggle off the firewall for your active network.

On Mac, go to System Settings > Network > Firewall and switch it off. Try the update again. If it works, add iTunes as an exception in your firewall rules so you don’t have to disable it every time.

We tested this on three different antivirus programs (Norton, Bitdefender, Kaspersky). All three blocked iTunes at least once.

#Update iTunes to the Latest Version

Open iTunes and click Help > Check for Updates on Windows. On Mac, check the App Store for updates. According to Apple’s iTunes download page, running an outdated version can cause certificate mismatches.

We were running iTunes 12.12 when error 3004 first appeared. Updating to 12.13 fixed it.

#Reset Your Hosts File

Your hosts file might contain entries that redirect Apple’s servers to nowhere. This happens if you’ve ever used an ad blocker or if malware modified the file.

On Mac, open Terminal and run:

sudo nano /etc/hosts

On Windows, open Notepad as administrator and open C:\Windows\System32\drivers\etc\hosts.

Look for any line containing gs.apple.com or albert.apple.com. Delete those lines, save, and restart iTunes. If you’ve run into other iTunes errors before, a corrupted hosts file is often the hidden cause.

#Network Fixes for Error 9006

Error 9006 is about the download failing. These methods target network stability and alternative download paths.

#Flush Your DNS Cache

Stale DNS entries can point iTunes to the wrong server address. On Mac, open Terminal and run:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

On Windows, open Command Prompt as administrator and run:

ipconfig /flushdns

This takes about 5 seconds. Try your update again right away. Based on Microsoft’s DNS troubleshooting documentation, stale DNS records are one of the most common causes of connection failures to specific servers.

#Switch to a Different Network

Try a wired Ethernet connection if you’re on Wi-Fi.

We solved error 9006 on our test Mac by switching from a home Wi-Fi network to a mobile hotspot. The entire iOS update downloaded in 12 minutes with zero interruptions. Your router’s DNS or MTU settings might be the root cause without you realizing it.

If a different network isn’t available, change your DNS to Google (8.8.8.8) or Cloudflare (1.1.1.1).

#Manual IPSW Download Method

When nothing else works, download the firmware yourself and skip the iTunes download entirely.

Go to the community firmware archive at ipsw.me, pick your iPhone model, and grab the latest signed IPSW file. It’s usually 5-7 GB. Then connect your iPhone, open iTunes, hold Option (Mac) or Shift (Windows), click “Restore iPhone,” and select your downloaded file.

Error 9006 can’t happen with this method because iTunes never downloads anything from Apple’s servers. The restore takes about 10-15 minutes. If you’re curious about what restoring actually does to your iPhone, it wipes the device completely and writes fresh firmware from the local file you selected, which is why it’s so reliable compared to the standard online update process.

#Third-Party Repair Tools for Persistent Errors

If you’ve tried everything above and still get errors, the problem might run deeper than your network. Corrupted iTunes files or iOS firmware conflicts can cause errors that survive reinstalls.

Tools like Dr.Fone iTunes Repair rebuild your iTunes components and fix underlying file corruption. We used it to fix a stubborn error 3004 that survived three complete reinstalls on our Windows test machine.

Tenorshare ReiBoot works from the iPhone side instead. It forces your device out of a stuck update state. Especially helpful if your iPhone is frozen during an update.

#How Do You Know if Apple’s Servers Are Down?

Check Apple’s System Status page. According to Apple’s system status documentation, it updates every 60 seconds during active incidents. During the iOS 18 launch, Software Update showed yellow indicators for 8 hours straight.

If everything looks green, contact Apple Support with your iPhone model, iOS version, and error code.

Back up your data before that call. If Apple escalates to a DFU restore, you’ll lose everything on the device, and there’s no undo once the process starts. You can transfer photos to your PC as a quick partial backup, or run a full iCloud backup if you have the storage.

If you’re dealing with a different iTunes error, check whether it’s error 4013 or error 9.

#Bottom Line

Start by disabling your firewall and updating iTunes. Those two steps resolve errors 3004 and 9006 for most people in under 5 minutes. If that doesn’t work, flush DNS, reset your hosts file, or download the IPSW manually. Save third-party tools like Dr.Fone for cases where iTunes itself is corrupted, not just blocked by your network.

#Frequently Asked Questions

#Will iTunes error 3004 or 9006 erase my iPhone data?

No. These errors block the firmware download, not the installation, so nothing on your device gets touched.

#Can a VPN cause iTunes error 3004?

Yes. VPNs reroute traffic through third-party servers, and many of those servers throttle or outright block Apple’s update endpoints. Disconnect your VPN before running any iTunes update or restore.

#How long should I wait if Apple’s servers are overloaded?

Expect 24-48 hours during big iOS launches. The first 6 hours are the absolute worst because millions of people try to update simultaneously. If you can hold off until a weekday morning in your timezone, you’ll likely get through without any server-side errors at all. Apple doesn’t publish server capacity numbers, but community reports on Reddit consistently show that congestion drops sharply after the first day.

#Is it safe to download IPSW files from ipsw.me?

Yes. The site points to Apple’s own CDN, so every file is identical to what iTunes would fetch. Apple cryptographically signs each IPSW, and iTunes checks that signature before installing, which means a tampered file gets rejected automatically.

#Do I need iTunes to update my iPhone?

Not since iOS 15. Update directly through Settings > General > Software Update instead.

#Should I reinstall iTunes if these errors keep happening?

Only if you suspect file corruption rather than a network issue. On Windows, remove iTunes plus Apple Software Update, Apple Mobile Device Support, and Bonjour from Settings > Apps before downloading a fresh installer from Apple’s website. Mac users running macOS Catalina or later can’t reinstall separately because Apple moved iTunes functionality into Finder.

#Why does error 9006 only happen with large iOS updates?

Bigger files take longer to download. More time means more chances for a dropped packet or timeout to kill the transfer. Sub-1 GB updates finish too quickly for most network hiccups to matter.

#Can I restore my iPhone without updating to the latest iOS?

Yes, but only while Apple still signs the older firmware. They usually stop signing previous versions 2-4 weeks after a new release, so the window is tight. Check ipsw.me for real-time signing status. If the version you want shows a green checkmark, you can restore without updating by selecting that IPSW file manually in iTunes.

Fone.tips Editorial Team

Our team of mobile tech writers has been helping readers solve phone problems, discover useful apps, and make informed buying decisions since 2018. About our editorial team

Share this article