PDA

View Full Version : Tethering now possible.


wjp09
07-24-2007, 09:07 PM
Final Result:

http://www.youtube.com/watch?v=Io11d0kFGio

Tether your iPhone: EDGE internet on your laptop


http://cre.ations.net/image/view/640/1824 640 (http://cre.ations.net/image/view/640/1824) 800 (http://cre.ations.net/image/view/800/1824) Full (http://cre.ations.net/image/view/full/1824)
Recent developments have allowed iPhone hackers to compile background applications for the iPhone - among the most interesting so far is srelay (http://socks-relay.sourceforge.net/), 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 (http://cre.ations.net/blog/post/custom-ringtones--sounds-on-your-iphone-using-windows) 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 (http://devices.natetrue.com/iphone/tetherkit.zip) 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.
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:
http://cre.ations.net/image/view/160/1825 640 (http://cre.ations.net/image/view/640/1825) 800 (http://cre.ations.net/image/view/800/1825) Full (http://cre.ations.net/image/view/full/1825) Hit the right-chevron button to go into the IP settings.
http://cre.ations.net/image/view/160/1826 640 (http://cre.ations.net/image/view/640/1826) 800 (http://cre.ations.net/image/view/800/1826) Full (http://cre.ations.net/image/view/full/1826) 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
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.


-Credit goes to cre.ations.net

wjp09
07-24-2007, 09:28 PM
SETTING UP ADHOC

Click Start, then select Control Panel.

Click Network and Internet Connections. The Network and Internet Connections window opens.

<LI value=3>Click Network Connections. The Network Connections window opens.
<LI value=4>Right-click Wireless Network Connection.
Select View Available Wireless Networks. The Connect to Wireless Network dialog box opens.
http://support.gateway.com/support/manlib/Desktops/8508344/images/connect_.jpg<LI value=6>Select Advanced. The Wireless Network Connection Properties dialog box opens.
Click the Wireless Networks tab.http://support.gateway.com/support/manlib/Desktops/8508344/images/wirelesa.jpg
Click Add. The Wireless Network Properties dialog box opens.http://support.gateway.com/support/manlib/Desktops/8508344/images/ad_hoc_w.jpg <LI value=9>Enter the name of the network. For a peer-to-peer network, this can be any network name not already in use. Example: Adhoc.
<LI value=10>Click the This is a computer-to-computer (ad hoc) network check box.
<LI value=11>If an encryption key has been agreed to by the other members of your network, enter this value.
<LI value=12>Click OK to close the Wireless Network Properties dialog box.
Click the General tab.http://support.gateway.com/support/manlib/Desktops/8508344/images/networki.jpg <LI value=14>Select Internet Protocol (TCP/IP), then click Properties. The Internet Protocol (TCP/IP) Properties dialog box opens.
Click the General tab.http://support.gateway.com/support/manlib/Desktops/8508344/images/ip_prope.jpg <LI value=16>Click Use the following IP address.
Enter an IP Address and Subnet Mask for each wireless computer on your ad hoc network. The IP Address for computer 1 should end with a 1 and the IP Address for computer 2 should end with a 2. set the ip to 10.3.3.1 and the sub mask to 255.255.255.0 <LI value=18>Click OK to close the Internet Protocol (TCP/IP) Properties dialog box.
Click OK to close the Wireless Network Connection Properties dialog box.

chrissurra
07-24-2007, 09:37 PM
Can someone do a walkthru for intel mac?

DiscoJoey
07-24-2007, 09:53 PM
Can someone do a walkthru for intel mac?

this is very cool but it sounds like alot of work. im sure somone will make a much easier way to do this some day and ill really use EDGE on my laptop.

wjp09
07-24-2007, 10:13 PM
I decided not to put up a video sorry everyone. I put up steps to set up adhoc.

DiscoJoey
07-24-2007, 10:30 PM
I decided not to put up a video sorry everyone. I put up steps to set up adhoc.

:( id have atleast tried it with the video

wjp09
07-24-2007, 10:33 PM
I'm sorry by all means someone else put one up. I just can't do it at the moment. Im tired and my visions going blurry :)

Nuggets
07-24-2007, 10:36 PM
Wow, lots of steps there. i guess I'll just use my iPhone to surf the net since this is why I bought it :-)

Mr Chuckles
07-25-2007, 03:20 AM
Wow, lots of steps but pretty darn amazing and so quickly hacked. Hats off.

MorningZ
07-25-2007, 08:51 AM
:( id have atleast tried it with the video

There is a YouTube video mentioned in this Engadget article
http://www.engadget.com/2007/07/25/iphone-hacked-for-untethered-edge-data-on-laptop/

wjp09
07-25-2007, 03:04 PM
Thanks ^ I'll update first post. Not a video tutorial but shows final result.

dahkni
07-27-2007, 05:02 PM
I am using Windows XP, I got a couple questions if anybody can help... :laugh2:

1. When you load the tetherify-windows.bat, at the very end, the command windows closes automatically (i couldn't read what the status at the end was, whether it failed or not,) is this normal or was the command window supose to sit there and wait for me to close it?

2. i created the ad hoc network on my laptop, is the laptop supose to connect to the adhoc network? or is it supose to stay unconnected...?

3. I tried connecting the iphone to the adhoc network, and it gave me an error, could not connect to the network.

Can anybody help :frown:

Greatly appreciated!

Alexander
07-28-2007, 11:29 AM
Oh..

...This sure looks INTERESTING.... :gasp:

qryptiq
07-28-2007, 08:07 PM
damn,

i can't get it to work. So far, i've succesfully connected to the adhoc. I can even ping the iphone. But when i open IE, no website!?!

i don't get it. Out of curiousity, i even tried pinging google.com and nothing. It seems i get as far as the iphone and no more

qryptiq
07-28-2007, 08:10 PM
I am using Windows XP, I got a couple questions if anybody can help... :laugh2:

1. When you load the tetherify-windows.bat, at the very end, the command windows closes automatically (i couldn't read what the status at the end was, whether it failed or not,) is this normal or was the command window supose to sit there and wait for me to close it?

2. i created the ad hoc network on my laptop, is the laptop supose to connect to the adhoc network? or is it supose to stay unconnected...?

3. I tried connecting the iphone to the adhoc network, and it gave me an error, could not connect to the network.

Can anybody help :frown:

Greatly appreciated!

Dahkni
1. When you load the tetherify-windows.bat, at the very end, the command windows closes automatically (i couldn't read what the status at the end was, whether it failed or not,) is this normal or was the command window supose to sit there and wait for me to close it?

Qryptiq:
if i were you, i would start here before answering the other two questions. You want to be sure you get all ones rather than zeroes.

To be sure, go to a command line (START/RUN/CMD ENTER). Here, you want to change directory to the Tetherify folder and execute the batch file.

Let us know the results

tzhourdeka
07-29-2007, 04:00 AM
So doing this means you can use the internet just about anywhere?

soulracerdc2
07-29-2007, 06:22 AM
i been trying to do this hack for a while now but i havent got anywhere. When I run the command prompt I type "netsh interface ip set address "Wireless Network Conenction" static 10.3.3.1 255.255.255.0" and I get a message that says "Invalid interface iphone specified. Anyone what i'm doing wrong. Please Help Thanks

ajisai
07-29-2007, 08:20 AM
i been trying to do this hack for a while now but i havent got anywhere. When I run the command prompt I type "netsh interface ip set address "Wireless Network Conenction" static 10.3.3.1 255.255.255.0" and I get a message that says "Invalid interface iphone specified. Anyone what i'm doing wrong. Please Help Thanks

"netsh interface ip set address "Wireless Network Conenction" static 10.3.3.1 255.255.255.0"

This command is basically specifying IP address and Subnet mask for Internet Protocol Properties.

There are two ways to do this, as far as I know.
You can manually change them in TCP/IP window or netsh command.

It seems like you typed the wrong name. It's probably not "iPhone."

If you still want to run the command to change it, you have to find the name.
To find the name of network connection, go to "Control Panel/Network Connection/" and find the name of wireless network you are normally using.
Default name is "Wireless Network Connection"

Or


type "netsh interface ip show address"
and it will tell you the available name of the "wireless network connection"


i can't get it to work. So far, i've succesfully connected to the adhoc. I can even ping the iphone. But when i open IE, no website!?!
There must be some settings to changed in order to use Socket Proxy on IE. FYI, mine worked on Firefox, but not on IE.

chrissurra
07-29-2007, 02:49 PM
If you are connected and can ping the iphone then all you need to do is change the settings in your web browser to use the proxy.

Muncle
07-30-2007, 12:13 AM
I installed this a couple of days ago, and it works great!

As far as I can tell...AT&T can't tell the difference between the devices being used...so you shouldn't be charged anything extra for this.

qryptiq
08-07-2007, 09:42 AM
I installed this a couple of days ago, and it works great!

As far as I can tell...AT&T can't tell the difference between the devices being used...so you shouldn't be charged anything extra for this.

@Muncle

are you in a Mac or XP environment?

Muncle
08-07-2007, 09:54 AM
I'm using Mac OS X.

But to update that last post...I updated the iPhone to 1.1 (of course, having to restore everything) and I haven't re-installed the tethering files.

MacFreak
08-12-2007, 11:50 AM
How do i able to use iphone to use on my MacBook Pro? I am not programming. Can anyone explain to me easy way.

neener
09-06-2007, 09:53 PM
When I get to the step where I have to use "netsh" I type "netsh interface ip set address "Wireless Network Conenction" static 10.3.3.1 255.255.255.0" and I get this error all the time "The required operation requires evaluation"

Does anyone else have the same problem? All the other steps before this one I did correctly and haven't had any other problem but untill I get here. :(

I'm using MacBook with Windows Vista Ultimate on bootcamp

Lincoln
09-15-2007, 03:25 PM
Really neat, but way too complicated for what it's worth.

acosmichippo
11-06-2007, 08:44 PM
i seem to be having the same problem as qryptiq (http://www.everythingicafe.com/forum/../members/qryptiq.html)... my iphone and computer are connected ok, and i'm fairly certain i have set all of the proxy and ip/port settings correctly, but Firefox is telling me this:

"The proxy server is refusing connections

Firefox is configured to use a proxy server that is refusing connections."

obviously, all settings are NOT correct, or it would be working...


Anyway, any help would be appreciated.

Thanks!

ashrau
01-02-2008, 04:58 AM
Can Tethering be done without wireless connection. Can it be done connected with data cable. I want this as i'm not having Wifi in my office.

acosmichippo
01-02-2008, 06:30 AM
no, you can't do it through the data cable.

for clarity:
you don't need an existing wifi network... you only need wireless capability on the computer with which you want to connect to the internet.

ZipZap
01-06-2008, 12:01 AM
My understanding is that ATT can tell if you are using your phone as a tethered device. This has been discussed on many other forums for other ATT data phones.

Also, use of any ATT phone as a tethered device absolutely is prohibited by the terms of service. Of course if you have hacked the iphone, then you most likely do care about the ATT terms of service.

yuxel
01-11-2008, 01:11 PM
hi guys,
iphone connected,ping results ok,firefox settings ok but when i try to load a page just a white/blank page loads as a result.

Any ideas? I m using 10.0.0.3/255.255.255.0 settimgs by the way

Tinman
01-11-2008, 01:14 PM
My understanding is that ATT can tell if you are using your phone as a tethered device. This has been discussed on many other forums for other ATT data phones.

Also, use of any ATT phone as a tethered device absolutely is prohibited by the terms of service. Of course if you have hacked the iphone, then you most likely do care about the ATT terms of service.
AT&T can't tell when using the technique discussed in this thread. The iPhone is merely acting as a proxy and all requests will come from the iPhone.

And for that matter the iPhone is nothing like other AT&T phones.


--
Mike

yuxel
01-12-2008, 05:59 PM
Ok I have found the problem.. the problem is Edge is not activated through proxy..
You have to activate it safari or smth else in the iphone..
if it stays idle it disconnects immediately
I have opened meebo for msn and everytime edge usage, works fine with firefox now..
even though you have to refresh blank answers again

IphoneTony
01-12-2008, 06:03 PM
this is just to complicated for me

ZipZap
01-12-2008, 07:20 PM
I am told they know by your surfing habits, and the flow of data (volume).

So unless you work for AT&T and know for sure that they can't tell, I would be wary of tethering. You may find that they cut you off or send you a bill.

Tethering for all devices on the AT&T network except blackberry is forbidden by the terms of service.

If you do, however, find out definitively they cannot tell...please share that information.

Also, why would you want to tether on Edge. 3G, I understand, but edge is barely tolerable on the iphone. On a laptop with a normal browser....it going to suck big time.

acosmichippo
01-12-2008, 09:16 PM
not as much as dialup... or nothing.

anyway, i haven't heard any stories so far of ATT detecting tethering on the iphone.

Tinman
01-13-2008, 04:28 AM
I am told they know by your surfing habits, and the flow of data (volume).

So unless you work for AT&T and know for sure that they can't tell, I would be wary of tethering. You may find that they cut you off or send you a bill.

Tethering for all devices on the AT&T network except blackberry is forbidden by the terms of service.

If you do, however, find out definitively they cannot tell...please share that information.
You made the assertion; it's up to you to prove it. If you trying to convince me, however, don't waste your time.

Suffice to say what matters is how much data you consume--EDGE isn't fast enough to rack up enough usage to draw attention. And the iPhone isn't a dumb phone that suddenly is capable of high data use due to tethering: on its own the iPhone can max out EDGE's bandwidth.


--
Mike

ZipZap
01-13-2008, 08:56 AM
We both made assertions that neither can prove since neither of us work for ATT. My information came from the forums on ATT where a number of people have posted that they were hassled by ATT.

Regardless, I am 100% sure that tethering is a violation of the TOS.

Regardless, the current generation iphone is a useless tethering device.

Tinman
01-13-2008, 01:02 PM
We both made assertions that neither can prove since neither of us work for ATT. My information came from the forums on ATT where a number of people have posted that they were hassled by ATT.

Regardless, I am 100% sure that tethering is a violation of the TOS.

Regardless, the current generation iphone is a useless tethering device.
<sigh> The reports you read were not iPhones, and the users were most likely abusing it.

And as pointed out already tethering is far from useless when the only other alternative is no connection at all.



--
Mike

ZipZap
01-13-2008, 06:05 PM
The phone type does not matter. ATT can monitor usage across their entire network.

I am sure the monitoring is automated to look for thresholds...

Here are the ATT terms of service for the iphone:

http://www.wireless.att.com/learn/articles-resources/iphone-terms.jsp

and the exclusions (your unlimited data plan is not so unlimited with ATT):

PROHIBITED USES INCLUDE, BUT ARE NOT LIMITED TO, USING SERVICES: (I) WITH SERVER DEVICES OR WITH HOST COMPUTER APPLICATIONS, INCLUDING, WITHOUT LIMITATION, WEB CAMERA POSTS OR BROADCASTS, CONTINUOUS JPEG FILE TRANSFERS, AUTOMATIC DATA FEEDS, TELEMETRY APPLICATIONS, PEER-TO-PEER (P2P) FILE SHARING, AUTOMATED FUNCTIONS OR ANY OTHER MACHINE-TO-MACHINE APPLICATIONS; (II) AS SUBSTITUTE OR BACKUP FOR PRIVATE LINES OR DEDICATED DATA CONNECTIONS; (III) FOR VOICE OVER IP; (IV) IN CONJUNCTION WITH WWAN OR OTHER APPLICATIONS OR DEVICES WHICH AGGREGATE USAGE FROM MULTIPLE SOURCES PRIOR TO TRANSMISSION; (V) USING THE SERVICES FOR ANY ACTIVITY THAT ADVERSELY AFFECTS THE ABILITY OF OTHER PEOPLE OR SYSTEMS TO USE EITHER THE SERVICES OR OTHER PARTIES' INTERNET-BASED RESOURCES INCLUDING, BUT NOT LIMITED TO EXCESSIVE CONSUMPTION OF NETWORK OR SYSTEM RESOURCES (WHETHER INTENTIONAL OR UNINTENTIONAL) AND "DENIAL OF SERVICE" (DOS) ATTACKS AGAINST ANOTHER NETWORK HOST OR INDIVIDUAL USER; OR (VI) INTERFERENCE WITH OR DISRUPTION OF OTHER NETWORK USERS, NETWORK SERVICES OR NETWORK EQUIPMENT. EXCEPT FOR CONTENT FORMATTED IN ACCORDANCE WITH AT&T'S CONTENT STANDARDS, UNLIMITED PLANS CANNOT BE USED FOR UPLOADING, DOWNLOADING OR STREAMING OF VIDEO CONTENT (E.G. MOVIES, TV), MUSIC OR GAMES. FURTHERMORE, UNLIMITED PLANS (EXCEPT FOR DATACONNECT AND BLACKBERRY TETHERED) CANNOT BE USED FOR ANY APPLICATIONS THAT TETHER THE DEVICE (THROUGH USE OF, INCLUDING WITHOUT LIMITATION, CONNECTION KITS, OTHER PHONE/PDA-TO-COMPUTER ACCESSORIES, BLUETOOTH® OR ANY OTHER WIRELESS TECHNOLOGY) TO LAPTOPS, PCS, OR OTHER

acosmichippo
01-13-2008, 06:20 PM
i don't think anyone is disputing it's against the TOS... nor that they monitor your data usage. The question is if they can prove you're using the iphone as a tethered device, which i don't think is possible.

Tinman
01-14-2008, 01:04 AM
i don't think anyone is disputing it's against the TOS... nor that they monitor your data usage. The question is if they can prove you're using the iphone as a tethered device, which i don't think is possible.

Yea for the record pointing out the TOS is not the proof I meant. Might as well post " the rules" in a jailbreaking thread. Tilting at windmills...


--
Mike

ZipZap
01-14-2008, 08:17 AM
acosmichippo (http://www.everythingicafe.com/forum/members/acosmichippo.html),

Could they actually say with 100% accuracy that you were tethering? Probably not.

But they would wonder what you are doing on you [i]phone to account for the activity. They can see where you are going and what you are doing and since the iphone is supposed to be a restricted device deduce that you are likely tethering and perhaps even hacked and using applications that are prohibited.

Regardless, ATT is the service provider so they can pretty much draw whatever conclusion they want and it will be up to you to prove your case.

There are a few reports of ATT taking action in extreme cases (cutoffs and billing), but they are not likely to do so.

All that said, the odds are slim that you will ever hear from them as I would think we would have seen more reports here of ATT actions. I think that has to do with the fact that the data service is Edge and not 3G (i.e., on the slow cheap service who gives a crap what you do).

I would expect that on 3G they will be monitoring more aggresively.

Too Many Secrets
03-01-2008, 05:39 PM
Is this method of tethering still the best? Does this work with 1.1.3? or 1.1.4? I'm looking for a tethering solution for windows, but don't want to break anything. TIA

iPhone69
03-21-2008, 07:11 PM
i'm looking for the same thing, any help?

patrick_83
03-22-2008, 03:45 AM
Is this method of tethering still the best? Does this work with 1.1.3? or 1.1.4? I'm looking for a tethering solution for windows, but don't want to break anything. TIA

It worked for me, when i tried it, but that was about 2 months ago.

I use a windows PC

iPhone69
03-22-2008, 01:54 PM
is there anyone out there who can translate all of this tech. lingo for me so i can have my phone as an external modem.

CBRfanatic
03-22-2008, 04:29 PM
id be very careful with this, im more then certain they have ways of figuring that your more then likely tehtering, ie. torrenting with it etc, its kinda hard to rack in 100mb download in a month, lol, i just barely went past 50mb down for one month.

larsdennert
03-22-2008, 08:00 PM
I'm just lurking here from everythingq.com because I'm considering buying an itouch for my wife.

I have a Verizon Moto Q that I tether with occasionally using a third party app to proxy the connection over usb or BT. The Q uses EVDO and I've seen data speeds of 1Mbit. You don't get noticed by Verizon unless you go over 5gig of data per month which is really tough to do. Verizon likes to charge for everything they can FYI. I doubt ATT will notice 100MB of data in a month especially as the iphone has a proper browser.

Saurabh
03-23-2008, 12:14 AM
Dont worry about the amount of data you use. I have used over 200MBS of data a month. Once it was around 400Mbs because i had to download a sound book for a project and my internet was dead.