How to Tether and Connect iPhone (1G, 2G and 3G) as Modem for Internet Gateaway

iPhone, whether it’s classic 1st generation iPhone or iPhone 3G has built-in at least some form of Internet connection via wireless (WLAN), GPRS, EDGE, 3G UMTS and HSPA GSM connectivity. Especially with the release of iPhone 3G, the broadband speed is considerably faster. So theoretically, iPhone owner can connect and link notebook or laptop computer to iPhone and goes online from PC.

Unfortunately Apple doesn’t officially equip iPhone with such capability as out-of-factory default. However, hackers have managed to come out with idea to turn iPhone into modem as Internet gateway to deliver data to notebook, laptop or other devices, without requiring iPhone modem driver. However, do note that to tether use iPhone 3G as a modem or gateway to browse Internet for other device requires user to jailbreak iPhone 3G, and may break and violate terms of service from mobile service carrier, i.e. AT&T.

The basic for hack to iPhone tethering as modem for laptop’s Internet connection is simple. The key idea is linking the iPhone and the notebook PC or other device via ad hoc Wi-Fi wireless network, run a proxy server on the iPhone, and then tell the computer’s browser to use that proxy, as shown in the following trick.

Step 1: Jailbreak iPhone 3G

Download and install PwnageTool from iPhone Dev Team for Mac OS X or WinPwn for Windows and use the freeware to jailbreak iPhone 3G.

Step 2: Install 3Proxy and Terminal

After jail broke iPhone, a Cydia icon will appear on one of the App pages. Load Cydia, and after self updating by Cydia, go to Install tab -> All Packages. Install both MobileTerminal and 3Proxy, then hit the Home button. The phone will restart and Terminal will be installed on iPHone Home screen.

Step 3: Create Ad-Hoc (Computer-to-Computer) WiFi Wireless Network on Mac or PC

An ad-hoc network or computer-to-computer network is a temporary network used for sharing files, presentations and Internet connections among multiple computers and devices. Thus, it fits the purpose to tether and link to iPhone to share Internet connection.

Create an ad-hoc WiFi network on laptop computer. On a Mac OS X system, ad-hoc wireless network can be created and setup via Airport menu with Create Network link. In Windows Vista, go to Network and Sharing Center, and click on Set up a connection or network, then select Set up a wireless ad-hoc (computer-to-computer) network. In Windows XP, go to Network and Internet Connections category, and select Set up a wireless network for a home or small office (wireless infrastructure network). Name the ad-hoc wireless network with a network name (SSID).

Step 4: Join the Ad-Hoc Wireless Network from iPhone

Go to Wi-Fi Networks Settings in iPhone to join the ad-hoc wireless network created.

Step 5: Locate iPhone IP address on Ad-Hoc WiFi Network

Once connected to the ad-hoc network, click on the blue right arrow at the end of the selected/connected Wi-Fi ad-hoc network in iPhone. The details and information for the network will be shown. Among them is IP address. Record the IP address for later use.

IP Address of iPhone Modem

Step 6: Open Terminal and Run the Proxy Program

On iPhone, open Terminal, and type socks and hit Return to start the 3Proxy proxy server.

If there is no error appears on screen, the SOCKS server will be running on iPhone. Leave the Terminal opens. To hide it, simply hit the Home button to push Terminal to the background.

Step 7: Run Safari on the iPhone and Open a Web Page

Launch Mobile Safari on iPhone and browse to any web page.

Note that this step is important to ensure that iPhone will internally switch itself and fallback to 3G GSM data connection when it fails to get through to Internet using the ad-hoc wireless connection, without dropping or terminating the ad-hoc network, allowing the SOCKS proxy server to transmit and transfer data via 3G network connection. Thus, the page will take a while to load on first access.

Step 8: Configure Web Browser

Run Firefox web browser to configure proxy server for Internet traffic. In Firefox, go to Preferences -> Advanced -> Network -> Settings. Then, fill in the iPhone’s IP address written down from step 5 above into the SOCKS Host field, and enter 1080 as the port number.

Make sure all other proxy fields are blank and/or 0.

Tether iPhone as Modem

Step 9: Tunnel and Forward DNS Resolution Requests Through SOCKS Proxy

3Proxy SOCKS proxy can resolve target DNS names if the application sends domain name resolving requests to the SOCKS proxy. However, each application that requires to go to Internet via SOCKS proxy had to be configured manually, as most program will attempt to resolve a domain name against remote DNS server via HTTP protocol.

Firefox, for one, has such capability to force DNS resolution via SOCKS protocol. To enable such advanced option, type about:config into Firefox URL Location Bar. Change the value for network.proxy.socks_remote_dns preference to true.

The DNS resolution limitation through SOCKS proxy also explains why some applications do not successfully browsing or connecting to Internet websites through tethering iPhone. However, once DNS requests have been cached locally, the domain will work system wide.

Step 10: Terminate SOCKS Proxy Server

After using the Internet connection via iPhone, terminate the SOCKS proxy server running on iPhone by switching back to Terminal, and then press and hold the Home button until Terminal quits, else it may slowly drain the battery life of iPhone.

Up to step 9, user will successfully tether and link iPhone to notebook, laptop or desktop computer to use iPhone as modem to connect to the Internet and browse the web pages. The iPhone as modem hack also works on iPhone variants, including iPhone 3G, iPhone 2G, iPhone 2G with firmware OS 2.0, and iPhone 1G (if it’s what you call it).

Update: There is iPhoneModem can make it easier to tether and use iPhone as modem.

Source: cre.ations.net


16 Responses to “How to Tether and Connect iPhone (1G, 2G and 3G) as Modem for Internet Gateaway”

  1. mmemichi
    May 2nd, 2009 01:41
    16

    there is NO iPhone 2G in that way, there are only two generations of iPhones! the 3G of iPhone 3G means that it supports UMTS, nothing else!

  2. John
    March 17th, 2009 09:02
    15

    Wow! This is good! It really works! I believe that I might find some good use for this!

  3. badnfluenz
    March 12th, 2009 05:57
    14

    i’m able to connect without doing steps 6 thru 10

  4. Himu
    February 27th, 2009 17:11
    13

    How can you run Yahoo Messenger using the steps mentioned above?

  5. Use iPhone as Wireless Modem with iPhoneModem » My Digital Life
    February 21st, 2009 02:16
    12

    [...] estate and tactile qwerty speed of a laptop. iPhone, with all its WiFi and 3G features, could be used as modem, allowing user to go online when on the [...]

  6. MMS Photo Messaging App for UK iPhone Free Download » My Digital Life
    January 17th, 2009 23:49
    11

    [...] seriously lack and missing some useful features that common on most other mobile phone, such as tether as modem and MMS (Multimedia Messaging Service). MMS is an extension to SMS text message which allows longer [...]

  7. OwlOwl
    January 15th, 2009 23:05
    10

    I get my iphone connected to my PC but network and sharing center in windows shows that iphone has no connection to internet. It is weird because i can browse internet on iphone.

    Does it mean that i need to configure settings in iphone? Thx

  8. rLAND
    December 27th, 2008 22:33
    9

    Pablo,
    One disadvantage of this method is that you’ll need to individually configure every application in your macbook for using a SOCKS proxy. The only one that uses the main socks proxy network setting is Safari.

    Also, there are some of the newest macbooks (pro) that have been reported to be avoiding iphones as modems in some way.

    I hope this could be helpful.

  9. Iphone tethering
    December 24th, 2008 05:32
    8

    [...] sure i used these two links Feature: Use Your iPhone’s Internet Connection On Your Laptop and How to Tether and Connect iPhone (1G, 2G and 3G) as Modem for Internet Gateaway

  10. Mike P
    November 28th, 2008 03:21
    7

    PDAnet is now available for the iPhone but it requires jailbreaking.
    http://www.junefabrics.com/iphone/
    “To jailbreak your iPhone, simply install QuickPwn (http://www.quickpwn.com) on your computer and follow the instructions. Make sure you check “Cydia” during the process so that you can search and install PdaNet through it. “

  11. pyrou
    November 20th, 2008 02:53
    6

    iphone 1G et 2G.. ça n’existe pas..

  12. pauldanter.com » iPhone, tethering and all that jazz…
    November 2nd, 2008 04:21
    5

    [...] details of setting this up are available all over the Internet. Try these if you want to use this [...]

  13. Pablo
    September 7th, 2008 01:13
    4

    Hi,

    I did those steps about 20 times and i still get “Time Out” error on Firefox.
    So my macbook can´t connect to internet via iphone.

    Anyone knows what i´m doing wrong?

    Thanks.

  14. Abhi
    August 13th, 2008 00:29
    3

    This is where My old 6300 beats iPhone.

    I can boot up my 5 year old FORMATTED pentium 4 desktop with the Ubuntu linux,connect my Nokia 6300 with data cable,enter a few commands and start browsing full Intrtnet.lets see iPhone do that.

  15. Tether your iphone via USB cable - iPhone Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes.
    August 12th, 2008 08:34
    2

    [...] Iused this way, works great. How to Tether and Connect iPhone (1G, 2G and 3G) as Modem for Internet Gateaway

  16. Turn The iPhone Into A Modem
    August 1st, 2008 23:05
    1

    [...] you are interested in the information itself on how it can be done, a 10 Step guide can be found at MyDigitalLife.  Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

3proxy iphone - iphone 3proxy - iphone 1g - 3proxy for iphone - cydia tether - iphone tether app - use iphone 3g as modem - cydia tethering - tether iphone 3proxy - tether iphone to pc - iphone 3g as modem - tether iphone 3g to computer - tether iphone 3g vista - iphone modem tether - iphone 3g modem driver - Iphone modem driver - iphone tether - how to tether iphone - iphone 3g tether - iphone 3g modem - tethering iphone - tether iPhone to computer - 3proxy iphone 3g - iphone 3G share internet - 3proxy cydia - 3proxy iphone cydia - iphone modem - tether iPhone 2g - tether 2g iphone - iphone modem app - iphone tether windows - w - use iphone to connect to internet - iphone tether modem - tether iphone 3g modem - m - cydia tether iphone - tether iphone cydia - iphone 1g 2g 3g - use iPhone as modem windows - use iPhone to connect computer to Internet - tether iphone 3g - iphone modem windows - iphone tether cydia - tethering iphone 3g to pc - tether iphone to laptop - iphone cydia tether - iphone tether modem 3g - iphone modem 3g - iphone 3g connect laptop - tether iphone 3g windows - tether iphone - tether iphone 3g xp - iphone 3g tether to pc - tethering iPhone to computer - connect to internet through iphone - iphone 3G tether PC - cydia 3proxy - iPhone 3g tether application - iphone tethering cydia - iphone tethering 3proxy - iphone 2g tethering - connect to internet through iphone 3g - iphone 3g tether cydia - iphone socks proxy - iphone 3g computer modem - use iphone to connect laptop to internet - iphone 3g tether modem - 3g iphone modem - 3proxy iphone setup - connect iphone 3g to computer - iphone tether windows xp - iphone modem 3proxy - iphone internet gateway - tethering iphone cydia -