If iTunes or the Apple Devices app can't contact the software update server for iPhone, iPad or iPod
Find out what to do if iTunes or the Apple Devices app can't contact the software update server when you try to restore or update your iPhone, iPad or iPod.
When you use iTunes or the Apple Devices app on your PC to update or restore your iPhone, iPad or iPod, you may see an alert message that says your computer could not contact the software update server because you're not connected to the Internet. It will advise you to make sure your Internet connection is active and try again. Follow the steps below to fix the issue.
Update or restore your iOS device without a computer
You need to use your computer to update or restore your iOS device if you have forgotten your password and are locked out, or if your device is in recovery mode.
If that's not the case, you can update or restore with these steps:
Disconnect the iPhone, iPad or iPod touch from your computer.
On the device, turn on Wi-Fi. We recommend you connect to a network, not a personal hotspot, when you download software updates.
Update the device by going to Settings > General > Software Update.
If this doesn't fix the issue, go to the next solution.
Connect to the Internet and the iTunes Store
Open a browser on your computer and see if it can load a web page. Then try to connect to the iTunes Store.
If you can't connect to the Internet, contact your computer administrator or Internet service provider (ISP) for help. Alternatively, try a different computer or network.
If you can connect to the Internet but see an error message when you try to connect to the iTunes Store, find solutions to possible iTunes Store errors.
If these solutions don't fix the issue, edit or reset your hosts file.
Edit or reset your hosts file
Your hosts file may block access to the software update server. Here's how to edit or reset your hosts file.
If you use a Mac
If you use a work computer, check with your computer administrator before you edit the hosts file.
Choose Go > Utilities from the menu bar in the Finder.
In the Utilities folder, open Terminal.
In the Terminal application, type the following command and press Enter to open the hosts file:
sudo nano /private/etc/hosts
When prompted, type your user password. Note nothing appears in the Terminal window when you type the password.
Use the arrow keys on your keyboard to move through the hosts file.
If any line includes apple.com, add a hash sign (#) and a space character to the beginning of the line.
To save the hosts file, press Control-O.
At the file name prompt, press Enter.
To exit, press Control-X.
If this doesn't fix the issue, your security software may be out of date or misconfigured. You can resolve issues between iTunes and your security software.
If you use a Windows PC
On your Windows PC, reset the hosts file.
If this doesn't fix the issue, your security software may be out of date or misconfigured. You can resolve issues between iTunes or the Apple Devices app and your security software.
Information about products not manufactured by Apple, as well as independent websites not controlled or tested by Apple, are 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. Contact the vendor for additional information.