Can't connect to the iTunes Store
Symptoms
If iTunes cannot access the iTunes Store, it might display this alert message: "Cannot connect to the iTunes Store. An unknown error has occurred."
Products Affected
iTunes Store, iTunes, Windows 7, Windows Vista, Windows XP, Microsoft Windows XP, Windows Vista
Resolution
Click on the description below that most closely matches your iTunes Store situation:
- I have been unable to connect to the iTunes Store...
- I have never been able to connect to the iTunes Store on this computer.
I have been unable to connect for less than 24 hours
Try quitting iTunes and reopening it. If the issue persists, it's possible the store is temporarily unavailable for maintenance. Try again in a few hours. You might want to check the iTunes Store discussion board to see if a connection issue is impacting many other iTunes Store customers.
iTunes Store Discussion Board (Mac)
iTunes Store Discussion Board (Windows)
I have been unable to connect for more than 24 hours on a Mac.
If you haven't been able to connect to the iTunes Store for more than a day—and other customers on our discussion boards aren't experiencing similar issues—a software or internet service provider (ISP) configuration issue may be blocking your access to the iTunes Store. Click here to find out which ports and servers need to be allowed for iTunes Store access.
- Your copy of the iTunes application may be out of date.
If iTunes is out of date, it will not be able to connect to the iTunes Store. You can download the latest version of iTunes from our website:
http://www.apple.com/itunes/download/ - You may need to reset your keychain.
Connection issues are occasionally caused by keychain issues. Click here to find out how to use Keychain First Aid to resolve this issue.
- You switched to a new ISP.
If you didn't install new networking hardware, your ISP may be blocking access to the iTunes Store. Let your ISP know about article TS1629 which can help your them configure their servers to allow iTunes Store traffic through.
I have been unable to connect for more than 24 hours on Windows.
If you haven't been able to connect to the iTunes Store for more than a day —and other customers on our discussion boards aren't experiencing similar issues— a software or internet service provider (ISP) configuration issue may be blocking your access to the iTunes Store. Click here to find out which ports and servers need to be allowed for iTunes Store access.
- If you have not done so, try the steps in this article to troubleshoot iTunes Store connectivity in Windows.
- Your copy of the iTunes application may be out of date.
If iTunes is out of date, it will not be able to connect to the iTunes Store. You can download the latest version of iTunes from our website:
http://www.apple.com/itunes/download/ - You upgraded to Windows XP Service Pack 2.
Windows XP Service Pack 2, by default, enables the Windows Firewall. As with a third-party firewall, you will need to configure Windows Firewall to allow iTunes to access the iTunes Store. To do so:
- From the Start menu, choose Control Panel.
- If the Control Panel is in Classic View, skip to step 3, otherwise open Security Center.
- Open Windows Firewall.
- Click the Exceptions tab.
- Select the iTunes checkbox to enable it as shown here:

- Click OK.
If you have further questions about configuring the Windows Firewall, contact Microsoft's Service Pack 2 hotline at (888) SP2-HELP. Read this article for compatibility information.
- You switched to a new ISP.
If you didn't install new networking hardware, your ISP may be blocking access to the iTunes Store. Let your ISP know about this article which can help your them configure their servers to allow iTunes Store traffic through.
- The "hosts" file may be blocking the iTunes Store
Instructions for Windows 2000 and XP:
Find your hosts file. The hosts file is normally found in the following locations:
Windows XP: C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2000: C:\WINNT\SYSTEM32\DRIVERS\ETC
- Select the hosts file. Then click the Edit menu, and choose Copy.
- Then, click the Edit menu again, and choose Paste. There should now be a duplicate of the hosts file named "Copy of hosts".
- Drag the original hosts file to your desktop.
- Right-click the "Copy of hosts" file and choose Open. You may be prompted to choose the program you want to use to open this file. Double-click Notepad.
- When Notepad opens, click the Edit menu and choose Select All. Then click the Edit menu, and choose Delete.
- Click the File menu, and choose Save. Close Notepad.
- Right-click the "Copy of hosts" file, and choose Rename. Type "hosts" (without quotation marks) and press Enter.
- Restart your computer and try connecting to the iTunes Store.
- Select the hosts file. Then click the Edit menu, and choose Copy.
- Then, click the Edit menu again, and choose Paste. There should now be a duplicate of the hosts file named "Copy of hosts".
- Drag the original hosts file to your desktop.
- Drat the "hosts - Copy" file to your desktop. If Windows needs your permission to continue, click Continue.
- Right-click the "hosts - Copy" file that is on the desktop, and choose Open. You may be prompted to choose the program you want to use to open this file. Double-click Notepad.
- When Notepad opens, click the Edit menu, and choose Select All. Then click the Edit menu again, and choose Delete.
- Click File menu, and choose Save. Close Notepad.
- Drag the "hosts -Copy" file from your desktop back into the C:\Windows\system32\drivers\etc folder. If Windows needs your permission to continue, click Continue.
- Right-click the "hosts - Copy" file you just moved, and choose Rename. Type "hosts" (without quotation marks) and press Enter.
- Restart your computer and try connecting to the iTunes Store.
- Make sure that your computer meets the iTunes minimum system requirements.
- Make sure that your operating system is up to date:
- For Mac OS X, use Software Update to determine if you need to update your system.
- For Windows, go to Microsoft's Windows Update webpage.
- Make sure that you can access the Internet on your computer.
- You may have firewall or other security software that is preventing your computer from connecting to the iTunes Store. Click here to find out which ports and servers need to be allowed for iTunes Store access.
Instructions for Windows Vista and Windows 7:
Windows Vista: C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 7: C:\WINDOWS\SYSTEM32\DRIVERS\ETC
I have never been able to connect to the iTunes Store on this computer.
Follow the troubleshooting steps below. If these steps don't resolve the issue, contact AppleCare Technical Support.
Additional Information
If you're still not able to connect to the iTunes Store, your firewall software may be blocking the port iTunes uses to communicate with the Internet. For information about "well known" TCP and UDP ports used by Apple software products see this article.
Also see How to enable iTunes in the Windows Vista and Windows 7 Firewall
Important: Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. Apple provides this only as a convenience to our users. Apple has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and Apple assumes no responsibility in this regard. Please understand that a third-party site is independent from Apple and that Apple has no control over the content on that website. Please contact the vendor for additional information.