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

Related Posts

  • Kimmie


    can this be done with an ipod touch? also, using a linux wi-fi capable computer with the umbuntu installed on it can you simply pull up to a home and crack their wpa security from the road? I believe that this is being done to me but not sure or how to stop it.

  • Eric

    Hi, like Pablo, I get that safari times out. My iPhone isn't displaying whole messages on the board, so I don't know if the issue is resolved or not. It seems that my phone (with latest OS) isn't defaulting to 3G is there a way to change this?


  • Joven

    why can't i open yahoo messenger and yahoo mail ig i use pda? is there any way or means to activate it?

  • Pingback: Connecting iPhone to MBP? - Mac-Forums.com()

  • Revilo

    This sounds great!

    Has anyone tried this successfully in the UK? The only supplier of iPhone contracts in the UK is O2 and all the comments I've read here had mentioned AT&T.

    Any feedback from UK users much appreciated?

  • thainutte

    sorry…cannot join the adhoc created from my notebook.

    i use a 3G-S maybe thats the problem?

    when i typed the pswd for the ad-hoc it does not end…it neither shows an error window (like i couldnt join the network) nor does it accept it :(

  • Pingback: Activate and Enable iPhone as Internet Tethering Wireless Modem Without Hack or Jailbreak » My Digital Life()

  • krekas

    Fuck You

  • 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!

  • John

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

  • badnfluenz

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

  • Himu

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

  • Pingback: Use iPhone as Wireless Modem with iPhoneModem » My Digital Life()

  • Pingback: MMS Photo Messaging App for UK iPhone Free Download » My Digital Life()

  • 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

  • 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.

  • Pingback: Iphone tethering()

  • PDAnet is now available for the iPhone but it requires jailbreaking.
    "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. "

  • pyrou

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

  • Pingback: pauldanter.com » iPhone, tethering and all that jazz…()

  • 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?


  • Abhi

    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.

  • Pingback: Tether your iphone via USB cable - iPhone Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes.()

  • Pingback: Turn The iPhone Into A Modem()