• Your favorite

    Apple

    ,

    iPhone

    ,

    iPad

    ,

    iOS

    ,
    Jailbreak
    , and
    Cydia
    site.
  • Tethering your iPhone to your Laptop for Mac & Windows
    Thanks to the folks at cre.ations.net for creating this tutorial below

    [Original Link]

    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:

    Originally Posted by :
    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.
    iPhoneInterface v0.3.1 built on Jul 14 2007

    Waiting for phone... established.
    iPhone state: Activated
    type "help" for help
    iPhone:/# iPhone:/usr/sbin# fileref: 1
    iPhone:/usr/sbin# iPhone:/System/Library/LaunchDaemons# fileref: 1
    iPhone:/System/Library/LaunchDaemons# 1 file(s) copied.
    1 file(s) copied.

    --------PHASE 2: Uploading files and reconfiguring your iPhone---------

    iPhoneInterface v0.3.1 built on Jul 14 2007

    Waiting for phone... established.
    iPhone state: Activated
    type "help" for help
    iPhone:/# fileref: 1
    iPhone:/# fileref: 1
    iPhone:/# fileref: 1
    iPhone:/# fileref: 1
    iPhone:/# fileref: 1
    iPhone:/# fileref: 1
    iPhone:/#
    --------PHASE 3: Restarting your iPhone, twice---------

    Press and hold the Power button on your iPhone until it shows the "slide to turn off" red slider.
    Slide it, wait for the phone to turn off, and press the power button to turn it on again.
    Then do it again. When your iPhone has started up the second time, press a key to continue.
    Press any key to continue . . .

    --------PHASE 4: Restoring original update configuration---------

    1 file(s) copied.
    1 file(s) copied.
    iPhoneInterface v0.3.1 built on Jul 14 2007

    Waiting for phone... established.
    iPhone state: Activated
    type "help" for help
    iPhone:/# fileref: 1
    iPhone:/# fileref: 1
    iPhone:/# ---------DONE!--------

    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:

    Originally Posted by :
    1. Go into your laptop's network preferences
    2. Double-click the AirPort connection to bring up the proeprties
    3. Click the TCP/IP Tab
    4. Select "Manually" from "Configure IPv4"
    Enter the IP address: 10.3.3.1, subnet mask 255.255.255.0.
    5. Click the 'Proxies' tab.
    Scroll down the list of proxy servers until you come to "SOCKS Proxy"
    Check the checkbox, and in the "SOCKS Proxy Server" box to the right,
    enter the IP address of the iPhone: 10.3.3.2, and a port number
    of 1080.
    6. Click 'Apply Now' for the changes to take effect

    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."
    This article was originally published in forum thread: Tethering your iPhone to your Laptop for Mac & Windows started by arthursdomain View original post
    Comments 78 Comments
    1. Criss's Avatar
      Criss -
      this is amazing, how would AT&T have any way of seeing if you've tethered your phone though? the iPhone has a full web browser, it's not like you're using a WAP device and then suddenly start browsing "the real internet". I'm sure they could say you were abusing bandwidth or something like that, but this is still an amazing breakthrough.
    1. Kyle Matthews's Avatar
      Kyle Matthews -
      Nice! Cash was in the middle of a guide, but looks like he got scooped.
    1. Cody Overcash's Avatar
      Cody Overcash -
      doh scooped again. oh well I'll still put up a guide

      ooo that .sh file is nice though, easier than what I was doing, props to whoever made that
    1. chrissurra's Avatar
      chrissurra -
      Did anyone get this working on an intel mac? If so can you post how you got it working please.
    1. thaforgottenone's Avatar
      thaforgottenone -
      humm....very nice....was hope'n it would come in an update...but its hand'd off, so cant say no to it...gotta try it...thanks to tha maker
    1. bruce_wayne's Avatar
      bruce_wayne -
      Yeah something with the files is seriously crazy...I'm working on it..

      Well..I thought I had it working but no luck on connecting to the web...*sigh*
    1. oneshotthrill's Avatar
      oneshotthrill -
      Quote Originally Posted by bruce_wayne View Post
      Yeah something with the files is seriously crazy...I'm working on it..

      Well..I thought I had it working but no luck on connecting to the web...*sigh*
      yeah im having problems executing the .sh in the terminal too i tried ./ just like usual but got no such dir of file...
    1. Cody Overcash's Avatar
      Cody Overcash -
      yeah its not working, the windows one works great though
    1. bruce_wayne's Avatar
      bruce_wayne -
      Think parallels would do the trick? (I hate not having access to stuff at work *sigh*)
    1. JedixJarf's Avatar
      JedixJarf -
      Give Parallels a shot man, let us know the results.
    1. bruce_wayne's Avatar
      bruce_wayne -
      Will do as soon as I get home ...taps fingers "man..it's only 10:00"

      A side note, I broke down the scripts and stepped through each step manually last night and no luck there..

      And another update..might work..

      I created a package that, hopefully, should get everybody working properly on OS X. You might still need to set chmod +x on tetherify-osx-intel.sh because of the unarchiver. I haven't tested that yet.

      http://dinkdoink.com/upload/tetherkit-osx.zip


      Also, if you're getting the AFC error, try using the jailbreak bundled with the tetherkit. That's how I got mine to work.
    1. 2gmario's Avatar
      2gmario -
      same here - os x intel (macbook pro) wouldn't work - but worked fine in windows vista (gateway tablet)

      this is the hack i've been waiting for - seriously, you guys are pretty gifted.

      i wonder if its politically correct to put reverse engineering on a resume
    1. Portdogmc's Avatar
      Portdogmc -
      im having trouble doing this on my macbook. i tried under parallels but when i got to opening a command window, it said that cmd is not a valid windows 32 application??? anways ive been tryin on osx many times and i would love a step by step for mac osx.
    1. bruce_wayne's Avatar
      bruce_wayne -
      WOOHOO!

      Ok it works on OSX!

      Here is the jist of what you have to do. Take the file I posted earlier. DL it unzip it..
      then copy the jailbreak from there into the phonedmg you made when you were first modding your iPhone..you do have phonedmg folder right?

      Run it from there just like normal make sure you use the new jailbreak I backed up the old one just incase

      Then go back to the folder you created via the unzip and run the tetherify-osx-intel.sh script (note on both jailbreak and this script you have to run chmod u+x)

      and there you go! It works just great. If anyone needs ssh over socks let me know I figured that part out too! SWEET!
    1. Portdogmc's Avatar
      Portdogmc -
      when i try to use your jailbreak, i get "permission denied"

      also how do i "run the tehterify... script? its just a text file? what is the run chmod u+x? sorry im bad at this. ive done the ringtones, and changed my icons and carrier text and battery but i cant figure this out.. thanks for the help!
    1. bruce_wayne's Avatar
      bruce_wayne -
      OH NO no CLI experience ... no prob

      ok so

      unzip that file to the desktop
      open terminal
      type the following
      cd Desktop
      cd "folder name here"
      chmod u+x *

      then move jailbreak out
      change to the phonedmg directory
      cd "path goes here" for me that's ../../phonedmg
      ./jailbreak
      (it should run)

      cd
      cd Desktop/"unziped folder"
      ./tetherify-osx-intel
      that should run..follow what it says ..

      good to go
    1. oneshotthrill's Avatar
      oneshotthrill -
      still no go....
      whats wrong

      Last login: Thu Jul 26 23:16:40 on ttyp1
      Welcome to Darwin!
      kiwi-irwins-computer:~ kiwiirwin$ cd Desktop
      kiwi-irwins-computer:~/Desktop kiwiirwin$ cd tetherkit
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ chmod u+x *
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ cd phonedmg
      -bash: cd: phonedmg: No such file or directory
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ ~ kiwiirwin$
      -bash: /Users/kiwiirwin: is a directory
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ cd ~ kiwiirwin$
      kiwi-irwins-computer:~ kiwiirwin$ cd phonedmg
      kiwi-irwins-computer:~/phonedmg kiwiirwin$ ./jailbreak
      [jailbreak 1.0] by ziel w/ special thanks to GeoHot, iZsh, roxfan, Nightwatch and the rest of the #iphone-dev crew.

      Looking for iPhone...
      Sending Files...

      *** If iTunes is running, please close it.
      *** Hold the POWER and HOME buttons for approximately 25s.
      *** Release when the display says 'Please Connect to iTunes'.

      Sending More Files...
      Booting iPhone...

      Waiting for iPhone to finish booting...
      Moving files into place...
      Rebooting iPhone...

      Enjoy your newfound freedom. Thank the devs at #iphone next time you see them for making this all possible.
      p.s. Like most other useful tools, this one may be dangerous if used carelessly. Always remember -- You brick it, you bought it.

      p.p.s. I have no idea how 'My Humps' could possibly have gotten set as your ringtone.

      kiwi-irwins-computer:~/phonedmg kiwiirwin$ cd Desktop/tetherkit
      -bash: cd: Desktop/tetherkit: No such file or directory
      kiwi-irwins-computer:~/phonedmg kiwiirwin$ cd Desktop/
      -bash: cd: Desktop/: No such file or directory
      kiwi-irwins-computer:~/phonedmg kiwiirwin$ cd
      kiwi-irwins-computer:~ kiwiirwin$ cd Desktop/
      kiwi-irwins-computer:~/Desktop kiwiirwin$ cd tetherkit
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ ./tetherify-osx-intel
      -bash: ./tetherify-osx-intel: No such file or directory
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ ./tetherify-osx-intel.sh
      : bad interpreter: No such file or directory
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$
    1. bruce_wayne's Avatar
      bruce_wayne -
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$ ./tetherify-osx-intel.sh
      : bad interpreter: No such file or directory
      kiwi-irwins-computer:~/Desktop/tetherkit kiwiirwin$
      That looks like you didn't get the new version. Did you get the one that I posted?

      If so tonight I will post up the version I used
    1. oneshotthrill's Avatar
      oneshotthrill -
      Quote Originally Posted by bruce_wayne View Post
      That looks like you didn't get the new version. Did you get the one that I posted?

      If so tonight I will post up the version I used
      new version? of what jailbreak?or the tetherkit either way thanks i really appreiciate your help :]
    1. chrissurra's Avatar
      chrissurra -
      Quote Originally Posted by bruce_wayne View Post
      OH NO no CLI experience ... no prob

      ok so

      unzip that file to the desktop
      open terminal
      type the following
      cd Desktop
      cd "folder name here"
      chmod u+x *

      then move jailbreak out
      change to the phonedmg directory
      cd "path goes here" for me that's ../../phonedmg
      ./jailbreak
      (it should run)

      cd
      cd Desktop/"unziped folder"
      ./tetherify-osx-intel
      that should run..follow what it says ..

      good to go
      This worked thank you.

      The only error is the loading of the file the final step should read

      cd
      cd Desktop/"unziped folder"
      ./tetherify-osx-intel.sh
      that should run..follow what it says ..

      Heres a question I have my macbook connected through my iphone by modifying the settings of my wifi network named "chris" so I have 2 different settings saved on my laptop one being home which connects to chris and the second set to connect to the iphone..

      Any way to do this on the iphone so I can save 2 different locations?