iPhone Connecting to Internet Using Windows PC’s Network through USB Cable

Note that this was only tested on certain combinations like this (Windows 7 with iOS 8), this (Windows 7 with iOS 7), this and this (Windows 7 with iOS 9.3.2 (iphone 6s)). Windows 7 seems a possible Windows OS that can work. Recently, I tested it on Windows 8 and iOS 9. Unfortunately, it did not work. It seems iOS or Windows has changed its way configuring the network. So, if you are using newer OSes, an Ad-hoc wifi hotspot from your PC may be easier to set up to share the Internet connection of your PC to your iPhone.


It is common and straightforward to make PC to use iPhone’s GPRS, 3G or 4G Internet connection through the USB cable. Now during the spring festival in the country, I am facing the problem that I am wanting to make my iPhone use the PC’s Internet connection.

There is no router by hand and what I have is only the iPhone and USB cable. The PC is an old one with Windows XP installed.

Finally, I figured out a way to make iPhone connect to the Internet through the iPhone’s USB cable to the PC Internet connection.

iPhone <--USB--> PC <----> Internet

How to share the Internet of PC to iPhone through USB Cable

The method here is tested on iPhone 6 with iOS 8.1.3 and Windows 7 / Windows XP.

Step 1, disable the adapter for Internet connection in Windows.

iphone-share-internet-disable-internet-adapter.png

Step 2, connect the iPhone to the PC by a USB cable.

Step 3, in the iPhone “personal hotspot” settings, enable “USB only” Internet sharing.

iphone-share-internet-usb.png

A new adapter in Windows will appear (“Local Area Connection 2” here).

iphone-share-internet-iphone-adapter.png

Step 4, in the property of the adapter for Internet in Windows, enable “Internet Connection Sharing”.

iphone-share-internet-sharing-2.png

In the “Settings”, select the needed services.

iphone-share-internet-sharing-4.png

Step 5, re-enable the adapter for Internet in Windows.

iphone-share-internet-enable.png
iphone-share-internet-adpaters.png

Now, visit the Who am I service in your iPhone and check whether your IP is from the Internet provider for your PC.

Why and how does this work

Following is just my guess since both Windows and iOS are closed systems. For easier to understand, I name the adapters as follows.

iPhone tun0 <--USB--> tun1 PC eth0 <----> Internet

After Step 1, the Windows routing table is cleared. After Step 2 and Step 3, both tun0 and tun1 are created and the network packets are forwarded between each other.

iPhone tun0 <--USB--> tun1 PC

Step 4 makes sure that network packets can be forwarded from tun1 to eth0 by Windows. Re-enabling eth0 in Step 5 set up the routing table as we needed.

tun1 =PC=> eth0

The final path for the packet routing will be as follows.

tun0 --> tun1 --> eth0 --> Internet

Eric Zhiqiang Ma

Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

53 comments:

    1. What results do you get? Are there any error messages from Windows or iOS? My tests on iPhone6 with iOS 8.1 are okay.

      Making it work is a little bit tricky. You will need to follow exactly the order of the steps here. Some times, you may need to try several times.

  1. I have tried this with my iPhone 5 and Windows 7. Instead of my iPhone using my PC’s internet connection, my PC is using my iPhone connection. Any ideas?

    1. The mechanism re-used is from iPhone to let PC use iPhone’s data network. The methods here “tricks” Windows and iPhone to use the reverse connection.

      The method here should be followed exactly according to the steps. Otherwise, the trick likely fails and it works the normal way that PC uses iPhone’s data network.

      1. I have tried several times with one of the 3 following results:

        1. PC connects through iPhone like normal tether.
        2. PC connects to internet on its own as normal. iPhone connects using cellular.
        3. PC connects to internet on its own as normal. iPhone has no internet connection and shows up in Network … Center as “Unidentified Network”.

        After my last attempt, the Sharing tab under Local Area Connection Property has disappeared. Any ideas how to get this tab back?

        1. actually the tab is missing because there only 1 connection(network) . when u put 2 network, then the tab sharing is appear..

  2. lats time i have did all the steps you have given us here ..
    it was working and i have got the internet connection to my iphone 4s via the computer ,

    Today i connected the iphone to the PC but it wasn’t working , i have also did the steps agian and still not working ,
    i would be glad if you help me !

      1. Tried with the proxy and it didn’t work for me. But I want to know if my cellular data being on before I start the process should be a pre-requisite or should it be off? Thanks.

          1. I work in a university faculty so our internet has an http proxy that has to be put in the internet settings before it works. So that’s the type.

  3. I am not able to get this screen – whether i have to do in mobile or in PC

    Step 3, in the iPhone “personal hotspot” settings, enable “USB only” Internet sharing.

    After connecting my mobile to system I am not able to see the step 4

    Step 4, in the property of the adapter for Internet in Windows, enable “Internet Connection Sharing”.

  4. I have insalled I tunes in the system & sorted out the above issues, but when I connect to phone My PC uses the mobile internet – what should I do

  5. I want to know how to connect it using Windows XP? Because the methods you showed is using Windows 7. I cannot get to the network sharing parts on windows XP

  6. Didn’t work for me.
    I used xp but after several attempts and following your exact steps my iphone did not want to use my computer’s internet. It instead only used my cellular data to access the internet. Oh and yes I did then try disabling cellular data to force it to use the internet sharing from my computer but it wouldn’t connect at all.
    I also tried bridging the connections together but a error message popped up and I gave up. Somethig about tcp error
    Oh and the internet sharing option only appears when there is another internet adapter connected and detected by your computer. That’s why it dissapears after you disconnect your iPhone.
    I believe jailbreaking is the only way you could try to do this but I have yet to find a tweak that does it.

  7. I’m out of the country and was hoping to do so while here in my dorm room with only a wired network available but it seems I can’t have cellular turned off which doesn’t work for me as I’m not wanting to pay roaming costs. Any other options?

  8. hi…u explained everything well above in the instructions but i have big doubt…as u said in SETP 3
    “Step 3, in the iPhone “personal hotspot” settings, enable “USB only” Internet sharing.”

    if we have to turn on the “USB only setting” that means we have to enable the 2G/3G (mobile data) must right? without enabling the 2G/3G (mobile data) we cant access that setting…once if we on mobile data then internet (mobile data) will take from iPhone only right? then how above trick will work??

    but you mentioned about the above trick you are using internet from PC to iPhone (not mobile data) is that possible??

    please confirm and correct me if i am wrong…i want to use my PC internet in my iPhone 4S (not mobile data) through USB cable.

  9. I can’t open personal hotsopt in ios 9.2 without enabling cellular data. Please advice something ….

      1. Actually I am using ios 7 with windows 7 on pc… I surprised to stop working I dont know why? and I tried to restart my iPhone and rest my network settings still not working …

          1. sir i just clear the step in that system shows Network Shared.
            Please tell the next step, what should i do to start internet in my iphone.

  10. Sir,thank you very much, it worked Windows 7 with iOS 9.3.2 (iphone 6s),but can’t worked to ipad mini2.

  11. Sir, why is the sharing tab instead says windows- -i forgot is corrupted. I tried system restore and it still hasn’t worked. Any tips on how to fix this?

  12. Thank you for the tutorial. Unfortunately, as soon as I shut off cellular data my personal hotspot shuts off. The same thing happens if I switch to airplane mode. Is there a workaround to this? I am using Windows 7 and IOs 9.3.2 on an iPhone5. If I don’t shut off the cellular data, my phone connect to the internet through cellular.

  13. What if I want it to be the other way around? I want to connect my windows pc to my iPhone’s data .. is this possible?

    1. In many cases, yes. On my phone, in settings I turn on personal hotspot and then use a USB cable, WiFi or Bluetooth to connect the PC to the internet using my cell phone’s data plan.

  14. Hello Sir,

    I have followed the same steps. the newtwork is shared in my PC but how can I understand, that I am using the PC internet in my iPhone 6s becuase the 3G is also ON and Hotspot is connect with my PC. If I turn off my cercular data, the hotspot will disconnect otherwise I cannot use the PC internet.

  15. was able to setup the connection successfully but it took all the internet bundle on my phone. i thought it will share my Pc internet with my iphone and not otherwise.

  16. how do we know if desktop is using mobile data or otherwise?
    the IP address in both desktop and mobile is coming diferent
    it is saying personal hotspot : 1 connection

  17. i followed exactly same steps and I was able to connect but not sure which is geting whose connection, windows 7 professional to ios 10.1.1

Leave a Reply

Your email address will not be published. Required fields are marked *