View Single Post
Old 09-16-2008, 16:52   #1 (permalink)
samadgsm
Freak Poster
 
samadgsm's Avatar
 
Join Date: Feb 2006
Location: dubai
Posts: 334
Member: 227670
Status: Offline
Thanks Meter: 87
How to tether your iPhone 3G and browse the web using your 3G connection

640 800 Full
Thanks to the excellent work of the iPhone Dev Team and the porting work of Jay Freeman as well as the authors of 3Proxy, it is now possible to "tether" your iPhone 3G and use its Internet connection on your laptop.

Warning - Tethering your iPhone is against the iPhone data plan terms. AT&T could slap you with huge fees if you overuse this. I recommend only using it during emergencies.

Here's the basic rundown:
- Jailbreak your iPhone 3G
- Install 3Proxy and Terminal
- Create an ad-hoc Wi-fi network using your laptop
- Join the network with your iPhone
- Find the iPhone's IP address
- Open Terminal and run the proxy program
- Open Safari on your iPhone and open a web page
- Configure your browser to use the proxy

I will be using a Mac and Firefox to demonstrate, but the principles carry over to other platforms.

Step 1: Jailbreak your iPhone
640 800 Full This is a big topic. Head to the the iPhone Dev Team blog for instructions for this. You will have to restore your phone, which makes this a process that can take 2 or more hours. Make sure you do it before you really need to tether.

Step 2: Install 3Proxy and Terminal

During the jailbreak, Cydia should have appeared on one of your app pages:
640 800 Full Use it and let Cydia load and self-update.
640 800 Full Then head to Install, All Packages, then find MobileTerminal and 3Proxy (3Proxy is at the bottom). Install both and hit your Home button. Your phone will restart and you'll see Terminal installed on your home screen. 3Proxy isn't a GUI app and as such won't have an icon.

Step 3: Create an ad-hoc Wifi network using your laptop

Using whatever wireless software suite you have, create an ad-hoc network. On a Mac it's in the ******* menu, under "Create network...". Name it something inconspicuous. I called mine "baladoux".
640 800 Full On your iPhone, join the ad-hoc network.

Step 4: Find your iPhone's IP address
Then, hit the blue arrow next to it, and wait for your IP address to show up:
640 800 Full Memorize (or write down) this IP address. You will need it later.

Step 5: Open Terminal and run the proxy program

Simple enough. Open Terminal, type "socks" and hit return.

640 800 Full Nothing will appear to happen, but the SOCKS server will be running. You can hit the home button to push Terminal to the background (remember to terminate it later, by switching back to Terminal and holding the Home button until it closes).

Step 6: Open Safari on the iPhone and open a web page

Any page will do. I recommend cre.ations.net:
640 800 Full This step is important. The page will take a while to load. When Safari realizes it can't get to the Internet using the ad-hoc Wifi, it will do some internal magic to switch back to 3G for Internet while still on your ad-hoc network. That lets the proxy do its thing.

Step 7: Configure your browser

In Firefox, head to Preferences, and under Advanced, Network, hit Settings:
640 800 Full Then, fill in the iPhone's IP address (which you memorized earlier) into the SOCKS Host field, and put 1080 as the port number. Make sure all other proxy fields are blank and/or 0 as shown:
640 800 Full Then, since the proxy doesn't forward DNS, you will also have to change an advanced option in Firefox. In the Firefox URL bar, enter "about:config" and hit Enter:
640 800 Full In Filter, type "socks" and then double-click "network.proxy.socks_remote_dns" to make its value "true".

That should be all you need! Firefox should be able to browse the Internet through your iPhone's 3G connection
  Reply With Quote
 
Page generated in 0.10369 seconds with 7 queries