Tethering your iPhone to your Laptop for Mac & Windows
July 25, 2007 by admin
Filed under Electronics
Recent developments have allowed iPhone hackers to compile background applications for the iPhone – among the most interesting so far is srelay, a SOCKS proxy server.
srelay running on your iPhone opens up a very exciting possibility – you can use your iPhone’s EDGE connection with a laptop or other Wifi-enabled device.
A note of caution: Accessing your EDGE data plan through a laptop may be against your AT&T terms of service. Even modifying your iPhone to enable this service may be a violation. Please check before attempting this procedure.
Mad props to:
- ziel (for writing Jailbreak)
- NerveGas (for compiling these programs for iPhone)
- Nightwatch (for making a working iPhone compiler)
And the rest of the #iphone dev team. Also thanks to the writers of srelay!
I’ve done my best to make the procedure as simple as possible. You must first have run jailbreak on your phone – you need to go through the custom ringtone tutorial minus the part where you add ringtones (though you still can add ringtones if you want).
Now that your iPhone is freed from its jailed shackles, download the iPhone Tethering Kit and extract its contents to a folder on your hard drive.
Now double-click "tetherify-windows.bat" if you’re on Windows, or if you’re on Mac OSX (Intel procs only), open a Terminal and run "tetherify-osx-intel.sh".
Follow the instructions that appear – here’s what you will see:
|
Hello, this batch file will install and enable a SOCKS server on your iPhone. ——–PHASE 1: Getting files off your iPhone——— 1 file(s) copied. Waiting for phone… established. ——–PHASE 2: Uploading files and reconfiguring your iPhone——— iPhoneInterface v0.3.1 built on Jul 14 2007 Waiting for phone… established. Press and hold the Power button on your iPhone until it shows the "slide to turn off" red slider. ——–PHASE 4: Restoring original update configuration——— 1 file(s) copied. Waiting for phone… established. |
It’s kind of a mess of things. There is no error-checking, so if you see "fileref: 0" in any of the output, that’s how you know something went wrong. Otherwise it all should have gone just fine.
Congratulations! You now have an open SOCKS server on your iPhone.
To utilize it, you need to create an ad-hoc Wifi network without a router. This way the iPhone will remain connected to both EDGE and your laptop.
Wireless clients between Mac OSX, Windows XP, and Windows Vista vary, but the concept is the same. Create an ad-hoc network with your laptop, preferably using encryption.
Then set your IP address to a static address, without a default gateway. In Windows XP and Vista you can run this command:
netsh interface ip set address "Wireless Network Conenction" static 10.3.3.1 255.255.255.0
You would substitute "Wireless Network Connection" with the name of your wifi adapter if it’s named something different.
Then use your iPhone’s Settings panel to join to the ad-hoc network you created:

Hit the right-chevron button to go into the IP settings.

Hit the "Static" button on the top and fill in the settings.
Make sure to set the IP address to one on the same subnet as your laptop, here I use 10.3.3.2 and the subnet mask should be the same as well. Leave all other spaces blank.
Now set whatever application you want to use to use the SOCKS proxy at 10.3.3.2 port 1080. In Firefox this is under Tools -> Options -> Advanced -> Network -> Settings. You’ll also have to head into about:config (type that in your URL bar), type in socks_remote to the search bar, and double-click that setting to change it to true.
In Mac OSX, NerveGas reports that you can set a system-wide proxy:
|
1. Go into your laptop’s network preferences |
Your iPhone should be giving you Internet access now! Browse happy.
TUAW warns: "Who cares whether Apple or AT&T might shut down your account or slam you with an exorbitant data bill – cre.ations.net figured out how to tether your iPhone to get web access with… well, EDGE. It may not be Wi-Fi or even EVDO, but EDGE should be able to save the day in a pinch, but none of us make any guarantees as to how long AT&T will permit this or what this hack could do to your bill. Proceed at your own risk."














