How to restore my Iphone without getting an itunes error?

Basically I had a battery issue with my Iphone and was told to restore it before sending back. I couldn't restore it as I kept on getting an error message so I was told by a friend to put it into DFU mode. I did this and but now in order to take my phone out of recovery mode I must restore it and I keep getting the same error message. "The Iphone can't be restored at this time because the iphone software update server could not be contacted or is temporarily unavailable".So I now own a very expensive brick that I can do nothing with. Someone please help? I tried editing my hosts file but it looked completely different to examples and did nothing (not sure if I did it right). Note my phone is not jailbroken (Iphone 4S)

Right have you got the newest version of itunes? If not then please download it and that may well sort the problem out right away.
But if you are running the newest version? I would suggest if you can using a different computer to do the restore on! I used to have a computer that for some reason would never complete a update or a restore on my iphone it used to drive me crazy, but i was told by the apple store to try another computer which i did and it restored straight away with no problems at all.

  • What is MF Message Error Domain error 1032? - 1 My iPhone keeps displaying this message and its really annoying. I have read that deleting your yahoo email profile can resolve this but will it erase all my emails currently on my iPhone. Or will it redownload them when I re-register my yahoo email account?
  • Trying to restore jailbroken iPhone 4, getting Itunes error 3194 and error 11 I want to wipe my jailbroken iphone 4, on ios 5, so i can update to ios 7. I used tiny umbrella and managed to get past the 3194 error, but then I'm getting error 11. I have tried to erase and reset through the phone only, but it simply shows an endless loading ticker, and not the apple logo and loading bar. How can I reset my phone? Thank you for anyone who can help! I also have the latest itunes
  • Restore iphone, but then on itunes says error 9006? So i wanted to update to ios8 and then suddenly the logo of itunes came up so i connected my iphone to itunes and then it said to restore it but then it said error 9006 I don't know what to do anymore?
  • My iTunes library and getting this error message? "do you want to erase this iphone and sync with this itunes library" what will happen if I just click ok I don't want to lose my Boom Beach app