Fix iTunes restore Error By Editing Hosts File – It is common issue to be faced with iTunes Restore error while restoring iOS firmware on your iDevices (iPhone, iPod Touch, iPad). We’ve covered some of them as below:
However somehow you’ll also might be faced with another kind of iTunes error which prevents you to restore your iPhone’s (or other idevices but here we’ll use “iPhone”) firmware.
Amazingly, this iTunes error can be fixed by simply editing “hosts” file. But how can we know if this is the type of iTunes error that can be fixed by editing hosts file?
Simply conduct a ping to Apple server at “ping gs.apple.com” and if you’ve found or see something other than 184.108.40.206, then you’ll need to edit hosts file.
Start Menu >> Run >> type ping gs.apple.com >> click [Ok]
On Mac OS X
Open Terminal >> Type ping gs.apple.com >> hit Enter
How to Edit Hosts File to Fix iTunes Error
Step 1 – Open Hosts File:
On Mac: Press COMMAND + SHIFT + G on keyboard >> go to /private/etc/ >> find and open Hosts file >> edit it with text editor
On Windows: Press Windows Logo + E keys to pen Explorer >> go to C:\WINDOWS\system32\drivers\etc >> right-click host file >> open with NotePad
Step 2 – Add following line:
Step 3 – Now save the file and flush DNS Cache to make it work:
On Mac : open Terminal >> type dscacheutil -flushcache >> hit enter
On Windows : Start Menu >> Run >> type ipconfig /flushdns >> click [Ok]
That is it. Now try again restoring your iPhone via iTunes and you should not facing any issue.