Advanced steps for fixing issues with iTunes Store connection

Find out if your hosts file, firewall setup, or something else is blocking the iTunes Store.

You might not be able to access the iTunes Store for a variety of reasons, including:

  • Incorrect date and time settings
  • Blocked cookies
  • Blocked access to iTunes Store servers and ports
  • Hosts file entries
  • Software firewall settings
  • An Apple system issue
  • An issue between iTunes and security software

Learn more about iTunes Store errors and what to do if you can't connect to the iTunes Store. If the information in those articles doesn't resolve your issue, try the steps below.

Isolate the issue in Mac, iOS, or Windows

  1. Check for iTunes Store alerts.
  2. Open My Apple ID and confirm that you can sign in and manage your Apple ID. If not, you might have incorrect date, time, and time zone settings. Try the steps in the next section. If you're on a Mac and those settings are correct, you might have blocked cookies that the iTunes Store needs.
  3. Test another network. If the issue occurs only on your usual network, you might need to ask the network administrator to open access to iTunes Store servers and ports.

If the issue is isolated to this computer, the hosts file might be blocking iTunes.

Verify date and time settings in Mac, iOS, or Windows

If you can't manage your Apple ID, check your date and time settings.

Mac

  1. From the Apple menu, choose System Preferences.
  2. In System Preferences, click Date & Time.
  3. Select "Set date and time automatically" if it isn't selected.
  4. Click the Time Zone tab and adjust the time zone to match your current location.

iOS

Check to see if your device has a date and time issue.

Windows

  1. Access the Date & Time Control Panel.

    Windows XP: Click Start > Run and enter timedate.cpl.
    Windows Vista & 7: Click the Start menu's search box and enter timedate.cpl.
    Windows 8: Use the Search charm in the upper right to search for timedate.cpl.
    Windows 10: Use the search box and enter timedate.cpl.

  2. Check to see if the date and time settings match the current date and time, then click OK.

If the hosts file blocks the iTunes Store in Mac or Windows

Remove or block your computer's hosts file entries that interfere with the iTunes Store.

Mac

  1. Log in as an administrator on your Mac.
  2. Open the Terminal utility located in Applications > Utilities.
  3. When Terminal opens, open the hosts file. Type this command and press Return:
    sudo nano /private/etc/hosts
  4. At the Password prompt, type your administrator password. Terminal requires a non-blank administrator password. As you type your password, you won't see anything appear in the Terminal window. Just type the password and press Return.
  5. Edit the hosts file. The hosts file contains comments (lines starting with the # symbol) and default hostname mappings (for example: 127.0.0.1 – localhost). To navigate the file, use the arrow keys. If you find an entry containing apple.com, add # and a space to the beginning of that line. If this is a work computer, the hosts file might redirect to local resources like software updates. If needed, ask your support staff for help.
  6. To save the file, press Control-o.
  7. Press Enter at the filename prompt, and Control-x to exit the editor.

If you're still having issues, your computer might be using other software that affects the connection.

Windows

  1. To remove any issues with your hosts file, reset the Hosts file back to the default. Work systems might put information into the hosts file. Before you reset the hosts file to default, ask your support staff for help.
  2. Restart your computer and try to connect to the iTunes Store.

If a software firewall blocks the iTunes Store in Mac or Windows

If other Internet services work, or other devices on the network can access the iTunes Store, try these steps.

Mac

  1. From the Apple menu, choose System Preferences.
  2. Click Security & Privacy.
  3. Click the Firewall tab.
  4. Click Firewall Options. iTunes is signed by Apple and should be allowed by default. If Firewall Options isn't clickable (grayed out), click the lock at the lower left and enter your administrator password. If you modify iTunes, the OS X firewall might send you repeated prompts.
  5. If iTunes is allowed and the issue continues, turn off the OS X firewall.

If you've checked your firewall settings and the issue continues, check your third-party security software.

Windows

See if your Windows firewall is blocking iTunes.

If security software blocks the iTunes Store in Mac or Windows

If the firewall for your operating system allows iTunes, but your computer still can't access the iTunes Store, resolve issues between iTunes and security software.

Learn more

If your issue still isn't fixed, contact Apple for support.

This document will be updated as more information becomes available.

Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Risks are inherent in the use of the Internet. Contact the vendor for additional information. Other company and product names may be trademarks of their respective owners.

Last Modified: