13 septembre 2009

iPhone tethering


In order to use my iPhone as a modem (tethering), I followed these steps :

1/ I installed pdaNet via Cydia (my iPhone is jailbroken)
2/ On my Mac, I made a wifi ad hoc connection using Airport, "Create network"
3/ I opened pdaNet, and it told me that it detected a connection and dispayed stats.
4/ I changed on my Mac the browser user agent (on Safari : developement -> user agent -> iPhone) in order not to be catched by my operator and pay more. In addition I avoid to download flash files (using flashblock on Firefox for example).

If you want full internet acces (not only in http but FTP, Mail, SSH, RDP, VNC, Google Talk, VPN IPSEC, L2TP, PPTP) , you can either pay for it (30$, one shot) or crack pdaNet :

1/ Download the cracked PdaNet 1.53 Binary
2/ Connect your iPhone with WinSCP (Windows) or FUGU (Mac)
3/ Overwrite the PdaNet Binary in /var/stash/Applications/PdaNet.app with the downloaded cracked one
4/ with Winscp set the filepermissions from the PdaNet Binary to 755 (rwxr-xr-x)
5/ go to /private/var/mobile/Library/Preferences/ and, if it exists, delete the file com.jft.pn.plist
6/ reboot your iPhone
7/ After it’s back online, PdaNet is registred and ready for full internet acces.