How to edit hosts file to point iTunes to Apple or Saurik’s server?


There are 2 different scenarios when you need to edit your hosts file. The first scenario is if you need to let iTunes connect to Apple server to do “official restore.” Apple will only sign the most current firmware.

The second scenario is when you need to restore your iPhone using stored SHSH blobs on Cydia or Saurik’s server. This also allows you to downgrade to previous version of iOS provided that your SHSH is saved. Using the second method, iTunes is “tricked” as though it’s connecting to Apple server.

Scenario 1: if you need to restore to an earlier firmware version and if your SHSH blobs is saved in Cydia (Saurik) server:

You will need to add the following line to your hosts file.

Apple OS X Snow Leopard & Leopard

  1. Open Terminal (Click Spotlight, or press Command+Space. Now type terminal.)
  2. Copy and paste the following code into Terminal
    sudo /Applications/ /etc/hosts
  3. Press Enter.
  4. Add
  5. Save by pressing Command+S, click Save.

Apple OSX 10.4.X Tiger

  1. Open Terminal (Click Spotlight, or press Command+Space. Now type terminal.)
  2. In Terminal type, ‘sudo pico /etc/hosts‘, press Enter.
  3. Insert
  4. Press Ctrl+X, then Y to save.
  5. Type ’sudo niload -v -m hosts . < /etc/hosts’, press Enter
  6. Type ‘lookupd -flushcache’, press Enter.

Microsoft Windows 7 / Vista

  1. Click Start -> All Programs -> Accessories.
  2. Right click “Notepad” and select “Run as administrator”
  3. Click Yes on the UAC prompt.
  4. Click File -> Open.
  5. Change the file filter drop down box from “Text Documents (*.txt)” to “All Files (*.*)”.
  6. Browse to “C:\Windows\System32\Drivers\etc”.
  7. Select “hosts” and click “Open”.
  8. Insert
  9. Close Notepad. Click Save when prompted.

Microsoft XP/2003/2000

  1. Browse to Start > Programs > Accessories > Notepad.
  2. Click File > Open.
  3. Browse to “C:\Windows\System32\Drivers\etc”.
  4. Select “All Files (*.*)” from the Files of Type drop-down menu.
  5. Select “hosts” and click “Open”.
  6. Insert
  7. Close Notepad.  Save when prompted.

Scenario 2: if you need to restore to a firmware version that is currently being signed by Apple:

You need to remove any line on your hosts file that has something like from your hosts file. You can also add ‘#’ in front of it e.g. #

Simply see the steps above in order to edit your hosts file.


Related Posts Plugin for WordPress, Blogger...

One Response to How to Edit Hosts File to Point iTunes to Apple or Saurik’s Server?

  1. pepsilover says:

    followed this guide and a few similar ones and I still get the dreadful error 3194. Any other suggestions?

    Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>