Unable to restore my iPhone 4

I want to restore my iPhone 4, but I'm getting the following error message:the iPhone could not be restored an unknown error occurred (1013)


  • On your Computer, go to:
  • C:\Windows\System32\drivers\etc
  • Open the file named "hosts" with notepad or wordpad
  • Before the line that contains "gs.apple.com" you add "#" to disable
  • Save the file and try to restore your device again (via iTunes)
  • If you have the "access denied" message upon saving the file, right click > give security rights to the user.

Thanks to elfeone for this tip.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Unable to restore my iPhone 4 », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).