How to fix iTunes Error 3194, Error 21 and Error 1013
I finally found a few ways to resolve this after searching on Apple’s support page and other sites. I also came to the conclusion that the error 3194 in iTunes and the other errors are quite common and luckily quite simple to isolate to then resolve. Now the key here is isolate. Try one step at the time, don’t overdo it.
Note for Jailbreak and Firmware Downgrade.
If your issue is unrelated to Jailbreak or Downgrading a device then skip this section and move on to the next one.
This guide is not intended for downgrading or Jailbreaking, and while the info provided may still be useful it may not apply to your case. So unless you’re trying to restore your iOS device to the latest version of iOS this guide may not be for you.
Comments regarding this error while jailbreaking or using a software version other than the latest one will be ignored.
What causes the error?
The error 3194 happens when iTunes tries to validate the downloaded restore file (.ipsw) and is unable to reach Apple’s validation servers. The reason is usually something blocking the connection. Other causes are to try to use a firmware version that Apple is no longer signing ie. 5.1.1. So basically you can’t use an older firmware unless you work around the security that Apple has put in place. This article does not cover bypassing these security restrictions.
Common causes are:
- Firewall (try to disable it and attempt restoring again)
- Antivirus (try to disable it and attempt restoring again)
- Hosts file blocking access to the validation server. (keep reading for help with these)
- Stubborn computer (By all means try a different machine if you’ve tried everything here).
- Try this on a Mac (iTunes works almost flawlessly when used on a Mac)
In OS X the error shows as:
“The iPhone “name” could not be updated. This device isn’t eligible for the requested build.”
OR
“The iPhone “name” could not be restored. This device isn’t eligible for the requested build.”
In Windows the error is even less descriptive:
“The iPhone “iPhone” could not be restored. An unknown error occurred (3194).
Fixing error 3194 in iTunes
- Quit iTunes
- Download TinyUmbrella. (download links on the sidebar of their site)
Backup links: (Please check the official website for the latest version)
TinyUmbrella for Windows 5.10.14
TinyUmbrella for OS X 5.10.14 - Open TinyUmbrella (It requires admin account on the computer)
- Select your iPhone and then click on the “Advanced” tab.
- Untick the box “Set Hosts to Cydia on Exit (If you need a clean restore from Apple uncheck this box)” as seen on the screenshot below.
- Apply the changes.
What TinyUmbrella achieves is to remove any blocks created by a previous Jailbreak or similar procedure.
If This method doesn’t work for you try the Alternative method below.
Alternative
As mentioned earlier, what causes the error 3194 in iTunes in most cases, is the inability of iTunes to contact Apple servers.
We can achieve this manually by editing the HOSTS file in Windows or in OS X. All you need to do is to remove any reference to gs.apple.com i.e.: 74.208.105.171 gs.apple.com.
In Windows
You can find the hosts file on: “C:\Windows\system32\drivers\etc\hosts”
Not sure on how to modify the hosts file? Check out this tutorial including a video. “How to modify the hosts file in Windows”
In OS X
You can find the hosts file on: “/etc/hosts” or “/private/etc/hosts”
Make sure you have admin rights to save the changes: Right click on notepad and select run as admin, then browse for the hosts file.
I hope this helps. Leave comments or questions in the comments. Also please share if you’ve found other ways to fix this issue so I can add them up for others to find. Good Luck! – By Lone Ranger
[Related Articles]
Still not working for me :( "The iphone could not be restored. An unknown error occured (21)."
ReplyDeleteHave you tried testing on a different computer? When try a Mac if possible... less chances of getting blocked by 3rd party software.
ReplyDeleteWorked Perfectly! Thank You!
ReplyDeleteMake sure to close itunes when you remove the apple line from hosts. Then reopen itunes and try the restore again. Editing the hosts file with itunes upen will not help. You need itunes to reload hosts when it opens to grab the clean file.
ReplyDeletebravo works for me thanks
ReplyDeletei tried it for many times please help me ... (I have a iphone 4s and trying to go back to ios 5.1.1 and I run windows 7) Please help me ...
ReplyDeletePlease read this part again:
ReplyDeleteThis guide is not intended for downgrading or Jailbreaking, and while the info provided may still be useful it may not apply to your case. So unless you’re trying to restore your iOS device to the latest version of iOS this guide may not be for you..
None of this worked! =( I've been trying to restore my iphone 4 for months but I always get the same pop up error (3194)
ReplyDeleteif your just go to Setting>General>Reset>Erase Content and Settingss
Deleteif its just "error 3194" then try editing your 'hosts' file (delete all the lines containing 'gs.apple.com') if that does not worked too then try "disable" your antivirus/firewall programs (don't just do right click>>exit. make sure you disabled them) and try to restore again.
Deletethnk u millionz
ReplyDeleteIt's OK for me. Thank you very much. You save my life.
ReplyDeleteplz help me its not working for me i am iphone and ios 4.3 and updating for the latest ios
ReplyDelete@Ragy Have you tried testing on a different computer? When try a Mac if possible... less chances of getting blocked by 3rd party software.
ReplyDeletethanks so much you saved my life.
ReplyDeleteThx Heaps
ReplyDeleteis dis working for upgrading 3gs to 5xx ios
ReplyDeletethank you, this really helped me
ReplyDeleteIi love you!
ReplyDeleteCan i try restoring it from a different computer
ReplyDeleteYes, you can try from a different computer.
ReplyDeleteWorked for me
ReplyDeleteWorked for me, thanks!
ReplyDeleteWorked for me, many thanks!!! Finally a useful tip.
ReplyDeleteEverywhere: I have the same problem HELP... Yes I have it too help... But nobody helps... :)
you are the best thank you a lottttttttttttt !!!
ReplyDeletethanx - it saved my device - keep up the good work
ReplyDeletebravo!! it works for me (alternative way)..thanks alot :D
ReplyDeleteBrilliant - don't forget to close itunes and reopen, that did it for me :)
ReplyDeleteDude you rule... simple as...
ReplyDeletethanks, very helpful. i spent all night to solve this. but your tips works like a charm.
ReplyDeleteThanks a lot man. Your alternative method "Worked Perfectly!"
ReplyDeleteHey thanks alot it work perfectly and if ya getting other error try putting your device in pwned dfu it could help but thanks
ReplyDeleteAwesome, alternative method work perfectly!
ReplyDeleteMethod worked once device was put in DFU mode. Thanks!
ReplyDeleteI love you!I got rid of all the hosts, and put my sim card in and volia!
ReplyDeleteYour alternative method "Worked Perfectly!" thank you :)
ReplyDeleteive tried ... but it still returned with the same error... Im using Apple Ipod Touch fifth generation ios 6.x
ReplyDeleteFor Anonymous10/02/13 1:55 pm
ReplyDeleteWhen you've tried these methods and u still get the same error it normally means that something is blocking the validation of the restore file. That's why is important to try another computer and/or make sure your firewall/antivirus is not blocking iTunes.
worked for me thanks...
ReplyDeletethanks a lot you are grate
ReplyDeletethanks man YOU ROCK it worked perfectly fine XOXO
ReplyDeletethought id give a many thanks also for saving my ipod <3
ReplyDeleteBrilliant worked first time
ReplyDeleteThank you
THANK YOU SO MUCH! I tried different methods from other websites that included adding certain things, moving, copy, pasting, everything! To the point where I thought I had completely messed up that host file, and this worked!!! Thank you x10
ReplyDeleteSeriously the flipping host file!!! Alternative method is the way go folks!! Thanks man!!!
ReplyDeletethank you so much, hosts file solution has worked for me.
ReplyDeleteIOS 6.1.2
My phone is currently stuck on recovery mode. a couple hours ago my phone crashed. it didnt power on until i got home and pluged it in. It is still like that it wont power on unless its connected to a PC or power outlet. All i want to do is get it on the latest version of IOS.
ReplyDelete1: I have tried deleting the "74.*****" as well as placing a space between the # and the 74. Keep getting couldnt contact update server.
can anyone help me out.
where to apply i stuck help meeeeeeeeeeeee
ReplyDeleteWorked for me! Thank you!
ReplyDeleteThe "Alternative" worked for me after commenting ("#") out the "gs.apple.com" line from the Hosts file.
ReplyDeleteIT WORKED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ReplyDeleteIt worked !!! Thank you so much for the tip !
ReplyDeleteit didnt work :(
ReplyDelete"C:\Windows\System32\drivers\etc\hosts is not writabe!"
@sdh You need to open notepad as admin
ReplyDeleteAbove method helped to overcome the Error 3194. Thank you for the help.
ReplyDeleteWorked like a charm thank uuuuuuu.....
ReplyDeleteWorked for us, thanks a lot!
ReplyDeletenot working
ReplyDeletei cannot find gs.apple.com
in my drivers>host file
You need to enter that information yourself.
Deletethank you very much!!!!!
ReplyDeleteThank you so so much!!!
ReplyDeleteBy deleting the gs.apple blablabla from the hosts with notepad, my freeze ipad can connect with itunes and restore factory setting also update the ios.
Thanks again ;D
cheers mate, got me out of a hole.
ReplyDeleteThanks, it worked for me..
ReplyDeletegreat! thanks for the input works great!
ReplyDeleteFor anyone who didn't manage to get this to work, launch Tiny Umbrella and start tts server then try again
ReplyDeleteLOVE you man, your the best. Saved my ass, from getting a new phone, Your the best
ReplyDeleteIt solves the 3194 but now i got error 1604 instead, any idea folks?
ReplyDeletegoooooooooooooooooooooooooooooooooooood. Works.
ReplyDeleteThanks.
Gooooooooooooooooooooooooood!. Works.
ReplyDeleteThanks.
thanks this really helped me
ReplyDeleteit worked!!..tiny umbrella helped..though "set host to cydia" was actually unhighlighted...so i just unchecked "request shah...from cydia"
ReplyDeletetiny umbrella worked!!!!..though i unchecked the next option as the one mentioned was not highlighted!!!..but worked!!
ReplyDeletethanks you save my life lol
ReplyDeletethanks you save my life!
ReplyDeletecheers mate you're a genius!!!
ReplyDeleteworked for my ipod :)
ReplyDeletethank you big time
Thanks work fine
ReplyDeleteWork fine thanks
ReplyDeleteThank you soooooo much!!!! I tried everything I could find and nothing was working until I found this. I was so worried that I ruined my ipod forever. Thanks so much it worked perfectly
ReplyDeleteWas fighting with this for several hours on my iOS 6.1.3 device. I decided that apple must have updated there address for gs.apple.com. I used just-ping.com to do a ping of "gs.apple.com" and it came back with 17.171.36.30 I replaced that IP with the one provided above and then restarted iTunes... I have gotten past the point where it give me the 3194 error and it appears to be doing a restore. I will post the results as soon as I have them. (I feel dumb for not pinging gs.apple.com earlier) lol
ReplyDeleteYou need to make sure that you ping "gs.apple.com" with a service like just-ping.com (it's free) replace what ever IP comes back with the one provided above and the alternative method will work just fine ;)
ReplyDeleteYEEEEEEEEEEEHAAAAAAAAAAAAAA!!!! it worked....thanks alot dude
ReplyDeleteI used to get an error (21)
ReplyDeleteThis solved the problem
Thank you!
thanks! it works!
ReplyDeleteDidn't work at first, till I read the comment that said to close and reopen itunes; then it worked like magic!!
ReplyDeletei don't have this reference thing 74.208.105.171 gs.apple.com on my host files?why is that so?
ReplyDeleteI could not restore using a custom IPSW file (for iPad 2), I got the 3194 error. So in a desperate attempt I just tried the latest iOS version from Apple through their update feature in iTunes and it worked, until I got a error (6).
ReplyDeleteIt also got my iPad stuck in recovery mode and I think I was screwed. So I tried disabling my anti-virus software (Microsoft security essentials) because Apple recommends that and I tried resetting my iPad to factory settings and it worked and it automatically installed iOS 6.1.3 with that...
I don't know if it was Microsoft security essentials causing problems to begin with but one thing was sure, I could not update with the custom IPSW file (that I downloaded from Apple), I had to use the latest iOS that iTunes downloaded for me...
thank you
ReplyDeleteguys the alternative method worked perfectly after removing the whole
2 lines which included apple word in them not only gs.apple.com: here
remove those and save the file
74.208.10.249 gs.apple.com
#127.0.0.1 gs.apple.com
big fat thanks:i love you man !!
ReplyDeletethe alternative method worked perfectly
guys remove completely the following 2 lines in hosts and then save:
74.208.10.249 gs.apple.com
#127.0.0.1 gs.apple.com
what the fuck it works for me !!
ReplyDeletethank you so much!! i love u guys :)))))))))
When i tried to save as note pad, it showed "access denied" helppppp. i want to restore my ipod! and then when i used tiny umbrella it was error :((((
ReplyDeleteopen with run as administrator
DeleteI own the computer and it says i can't change anything? pls help!
ReplyDeleteThanks a lot. After spending whole on web your solution worked for me...Thanks a lot brother...
ReplyDeleteEpic :)
ReplyDeleteWorked for me.
Worked perfectly. Thanks.
ReplyDeleteWorked! Awesome!!! Thank you!
ReplyDeleteit workss... thanksssss this is awesomee..
ReplyDeletemy iphone 4 ios 7.0.6 i want to downgrade to 6.1.3 or lower. because i want to unlock..
ReplyDeletepls teach me how to downgrade itunes
This article helps me to solve error 21
ReplyDeleteclean my mac when I really need to work on the my iphone. This article has lots of information about this error and actual information about error.
thank a lot.host file editing work for me
ReplyDeletein my host file there is no gs.apple.com.
ReplyDeletei tried many time but not working in iphone 4s ios 7.1.2
gs.apple.com i.e.: 74.208.105.171 gs.apple.com.
ReplyDeleteThis type of reference is not showing in the hosts file....afterall it is showing me the same error 21...what should i do now