iPhone update server could not be contacted, but why ?

Hi!
I'm wondering why iTunes can't seem to contact the iTunes update/restore server. My iPhone needs to be restored and when I try, it extracts the software but it stops when it comes to contact the server, it says it is temporarily unavailable. I tried all Apple solutions on the support page, but I can't understand how can I check what ports are opens and if iTunes uses them or not...
Thanks.

iPhone 3GS, iPhone OS 3.1, Mac OS X 10.6.2

Posted on Apr 17, 2010 4:43 PM

Reply
139 replies

Oct 12, 2011 5:09 PM in response to Sparkax

If someone who is facing this problem is using Windows, try these steps. It worked for me.


Open notepad as administrator. Click File then click open. Direct yourself to C:\Windows\System32\Drivers\etc . Type hosts and press enter. Add this "# 127.0.0.1 gs.apple.com (add a hash and press tab then type 127.9.9.1 gs.apple.com)" to the bottom. Save and close notepad. Restart the itunes.


Good Luck

Oct 12, 2011 5:26 PM in response to Sparkax

For what it's worth, I ended up needing to use a different Internet connection.


I'm not sure if it's my ISP doing something weird, or my router. I ended up connecting via a 3G router that I happened to have with me home from work, and that worked.


The really weird thing is that gs.apple.com resolved correctly via traceroute, so I could tell it wasn't an entry in my hosts file that was to blame.


Very strange.

Oct 12, 2011 6:07 PM in response to Sparkax

I had exactly the same problem.


I added to the hosts file the last line


# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

# 127.0.0.1 gs.apple.com


Then I read the first reply which is to sign out of iTunes then sign in. I realised quickly that my password on iTunes was out of date. Put the new password in and it worked a treat.


I don't know if adding the extra line made it work or if it was just a case of having the correct username and password in iTunes.


I also disabled my firewall for the update as well to ensure the ports were open, but i doubt this helped.


Hope this helps.


Jon

Oct 13, 2011 3:07 PM in response to Sparkax

I'm using a 2010 Mac mini and have had IOS 4 updates previously without problem.

I upgraded to Lion recently which updated iTunes to ver 10.5

Since then iTunes has tried to update the iPhone repeatedly and got stuck at the "iPhone software update server could not be contacted or is temporarily unuavailable" part every time.

I can ping the server and for gs.apple.com get 17.151.36.30 and my hosts file didn't have the loopback entry for that server anyway so the server IS available and has done a few IOS 4 updates in the past.

Any clues for this set of circumstances?

Maybe I should reload Snow Leopard and forget Lion?

Oct 14, 2011 7:05 PM in response to mistamidget

Fixed.

After consulting a Linux guru mate who said "you updated to lion! you *******"

So, following his advice I connected the phone to a machine running windoze7, installed itunes and did the upgrade through there.

Seemless although there was no backup to restore. Doing that now back on the Mini.

So I just bought a 12" EeePC running windoze7 to go forward with.

Hopefully I'll get enough selling the mini to pay for the EeePC. Didn't like the new version of Lion email anyway so no great loss.

Apple need to make itunes available for Linux then I can have the best OS

:-p

Oct 15, 2011 12:01 PM in response to Sparkax

after trying all day long, i finnaly solved that issue:

On a mac, click on finder.

on top, click on go=> Go to folder.

in the window that pops up, type "/etc" (without quotes).

on the new finder window locate Hosts file, and drag it to desktop.

open it with textedit, and if you find any line involving gs.apple.com (ex: 127.0.0.1 gs.apple.com) add a # in the begining of the row.

ex: if you find this: 127.0.0.1 gs.apple.com

make it look like that: # 127.0.0.1 gs.apple.com

Note: there may be more than one line as seen above, repeat as many times as needed.

save hosts file, drag it back to /etc folder (authentication may be required) replace it, and close finder.

Enjoy!

Oct 23, 2011 10:36 AM in response to BaranCan

BaranCan's tricks worked perfectly for me using Windows Vista 64bit Ultimate. I couldn't save the change in the host file so...the only additional step I had to do was to go to the "host" files Properties and uncheck the "read only" option. This is probably pretty basic but hopefully it will help a few.

I'm now downloading 5.0 as I type.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iPhone update server could not be contacted, but why ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.