Wednesday, March 26, 2008

How to setup an iPhone for Vodafone Live (Ireland)

Note: this tutorial is based on Mac OS X, but if you understand it you will be able to apply it to a Windows/Linux computer using your own SCP/SFTP client to access the iPhone's filesystem (or use iphonebrowser as an easier way to transfer the files). Moreover, if you know the EDGE setting and the WAP proxy for a different mobile operator, you might also find it usefull as long as you make the appropriate changes during Step 1 (use the right APN) and Step 2 (edit the proxy.pac file to include the IP addres of your operator's proxy server).

This tutorial has been tested with an iPhone version 1.1.4, assumes you have created a folder called "iphone" on your Mac OS desktop and that the IP address of the iPhone is 191.168.1.11. Check the IP address of the iPhone (settings / wifi / arrow going right next to your network name) and replace 192.168.1.11 by that address in the command lines given in the tutorial. The iPhone must also have OpenSSH installed and be connected to the same Wi-Fi network as your computer. Finally, the default root password on firmware 1.1.4 is "alpine". You will be requested to type it every time you are copying files to or from the iPhone.

Step 1: On the iPhone go to settings / general / network / EDGE and set the following parameters

APN: live.vodafone.com
login: dublin
password: dublin

Step 2: download the file proxy.pac into the "iphone" folder on your Desktop

Click here to download proxy.pac

Step 3: upload the file proxy.pac to the iPhone

Open a terminal window and type (one single line - you can copy and paste the whole text in italic):

scp ~/Desktop/iphone/proxy.pac root@192.168.1.11:/private/var/mobile/

Step 4: retrieve the file preferences.plist from the iPhone

In the terminal window, type (one single line - you can copy and paste the whole text in italic):

scp root@192.168.1.11:/var/preferences/SystemConfiguration/preferences.plist ~/Desktop/iphone/

Step 5: edit the preferences.plist file in the iphone folder

Open the file with Text Editor and add the text in red (the text in blue is already present and helps you find where to add the new parameters, moreover the ip1 in bold is the important bit to locate the right location in the original file):

<key>Interface</key> <dict> <key>DeviceName</key> <string>ip1</string> <key>Hardware</key> <string>com.apple.CommCenter</string> <key>Type</key> <string>com.apple.CommCenter</string> </dict>
<key>Proxies</key> <dict> <key>ProxyAutoConfigEnable</key> <integer>1</integer> <key>ProxyAutoConfigURLString</key> <string>file:///var/mobile/proxy.pac</string> </dict>
<key>com.apple.CommCenter</key> <dict> <key>AllowNetworkAccess</key> <integer>1</integer> <key>Available</key> <integer>1</integer> <key>Setup</key> <dict> <key>apn</key> <string>live.vodafone.com</string> <key>password</key> <string>dublin</string> <key>username</key> <string>dublin</string> </dict> <key>Version</key>

Once the changes have been made, save the file.

Step 6: send the modified file back to the iPhone

In the terminal window, type (one single line - you can copy and paste the whole text in italic):

scp ~/Desktop/iphone/preferences.plist root@192.168.1.11:/var/preferences/SystemConfiguration/

Step 7: restart the iPhone

Hold the power button for a few seconds and confirm you want to shut down the phone. Then turn it back on.

Final step: that's it, you can now make sure Safari works even with the Wi-Fi connection disabled

References

http://ww.boards.ie/vbulletin/showthread.php?t=2055239822

http://arashpayan.com/blog/index.php/2008/03/02/t-zones-on-114/

4 comments:

whatsthematter said...

Hey ya,

great guide...

Do you know if this is still working for the Iphone 3.0 ? the preferences.plist seems to look a bit different.

Thanks,

Inga

Boris said...

Thanks,

I am not using Vodafone anymore so I don't know, sorry (but it can not have changed too much it is worth trying).

One thing though: I think at least in Ireland Vodafone has removed their proxy. So Internet access should work out of the box without any modification.

But I have never tried it ...

Boris

Wicked said...

Hi, NZ vodafone is the same as Ireland , they have made all thier APN's unverified, how does this affect this tutorial of yours?

Boris said...

Wicked, have your tried just enterning the APN name for vodafone NZ in settings / general / network / cellular data network (and leaving the rest blank).

If they have no more proxy this should work.
Otherwise you will have to find the proxy name and follow the tutorial - but I would think they have stopped this proxy thing which is not making too much sense nowadays.