My line to the internet is down. So I have been without it since Monday afternoon.
I started fiddling around with my iPhone to get it to work as a modem, I will share my findings.
iPhone need to be jailbreaked, of course. Create a Ad-Hoc / Computer-to-Computer WiFi network on your computer. Everything as usual, at least for me. Setting a router / gateway on the iPhone messed things up, as well as setting DNS, since I use my computer connection for the iPhone some times I needed to remove these.
Tunnel through SSH into the iPhone, in a Terminal type ‘ssh -ND 8080 root@192.168.4.8’, assuming the iPhone IP address is that one, the default password is ‘alpine’. No quotes.
Set up a SOCKS proxy in your web browser or in System Preferences on a Mac to get it system wide, 127.0.0.1 port 8080, the same 8080 you typed in the SSH command earlier. It worked like a charm to surf yesterday, but today I kept getting an error (channel 2: open failed: administratively prohibited: open failed
) in the Terminal when I tried to reach the internet.
For simplicity, you need to see the 3G or E icon on the iPhone while still being connected via WiFi. Since it needs to fall back to one of those after it have tried to reach internet via the WiFi connection.
Start Safari on the iPhone and let it load a page and then shut it down, if you want, when WiFi icon disappears.
The two iPhoneModem programs are crap by the way.
Design by Simon Fletcher. Powered by Tumblr.
© Copyright 2010