How to Share Internet Connection with Ad Hoc Network on Windows 7

One of my blog’s popular posts  is a tutorial about how to create an Ad Hoc network on Windows 7. A lot of readers are asking how you can share an internet connection with Ad Hoc network. I spent some time over the weekend and wrote up this tutorial.

Let me explain the scenario a bit. Suppose we have two computers (computer A and computer B) and one wired internet connection. Both computer have wireless cards, but you do not have a wireless router. You want both computers to access the internet through the single wired connection.  I connected the wired internet connection to computer A and created an Ad Hoc network on it. I then configured computer B to join the Ad Hoc network.

Here are the steps on computer A:

  1. Connect the wired internet connection to computer A.
  2. Click on the Windows icon and type View network connections and press enter.
  3. Identify the wired internet connection and the wireless card. On computer A, the wired internet connection is called Local Area Connection 2 and the wireless card is called Wireless Network Connection 2. Note that these connections are different on your computer.
  4. Locate the wired internet connection and right click on it. Select Properties.
  5. Click on the Sharing tab and check the box. Select the correct wireless connection in the Home networking connection drop down.
  6. Create an Ad Hoc networking following the instructions in this post. Here is a screenshot of the Ad Hoc network named kombitz I created for this tutorial. Note that if you check the box to save the network, you do not have to do this step again next time.
  7. Click on the network icon in the lower right corner of the system tray and make sure it’s connected to the Ad Hoc network you just created. If not, click on the network and click on Connect. Here is a screenshot of the network icon in the system tray.

Now computer A is set up to allow connections from other computers. Here are the steps on computer B to join the Ad Hoc network.

  1. Click on the network icon in the lower right corner. You should see the Ad Hoc network. In this example, it’s called kombitz.
  2. Select the network kombitz and click on Connect. Enter the network key if you had one set up when creating the Ad Hoc network.

When you are done sharing, you will have to turn internet sharing off on computer A. Otherwise, the wireless connection will not work on computer A. To disable internet sharing, follow the steps 1 through 5 for computer A except you un-check the box Allow other network users to connect through this computer’s Internet connection.

36 Comments on How to Share Internet Connection with Ad Hoc Network on Windows 7

  1. “When you are done sharing, you will have to turn internet sharing off on computer A. Otherwise, the wireless connection will not work on computer A.”

    What does that mean?

    Does it mean that I can only use internet on “computer A” OR “computer B” but NOT “A” and “B” together?

    • That means when you do not want to share the internet connection, remember to turn the internet sharing off. Otherwise, the wireless connection will not function properly afterward.

      When you turn on internet sharing, both computer A and B can access internet together.

  2. If I have \computer A\ connected to internet with wired connection using a modem (no router) and it also has a built-in wireless adapter on it’s motherboard (that can act as an access point), could I create an ad-hoc network (with internet sharing) on \computer A\ and connect \computer B\ to this network and be able to access the internet from both \computer A\ and \computer B\ at the same time?

  3. Hi. I’m not very professional in this area, but I’ve been creating ad hoc networks for internet sharing regularly on laptops with Windows7. However, I noticed that sometimes when i try to make an ad hoc network I get a message saying Unable to set up ad hoc network. Was wondering if you could help?

    Thanks =D

  4. Thanks for the article, very informative. I guess I´ll have to go home and try it myself, but will this work if the connection on Computer A is a wireless USB modem instead of a “wired” internet connection?

    I´m living in a place where getting internet in the home is very difficult (and we have two people who need internet), so am exploring all my options.

  5. Hi,
    I am having 2 laptops one with Windows Vista & other with Windows 7. Previously I used create ad-hoc network on Vista laptop & used to connect to that n/w thru Windows 7 laptop.
    This was working perfectly.

    But suddenly I m not able 2 access the internet from Windows 7 laptop. When I create Ad hoc network from Vista laptop & try 2 connect that n/w thru my Windows 7 laptop, it shows “connected” status. But It shows “No Internet Access” messageo. I tried to share the files also,but it is not working. I suspect the issue is due to diff. O.S.
    While setting up the N/W I followed exact step mentioned in this tutorial. But this is not working.

    Can anybody help me…

    • Try to set up internet sharing on your Windows 7 machine and set up ad hoc network there. Then configure your Vista machine to join the ad hoc network.

    • I created an Ad hoc network from Windows 7 laptop( Dell Inspiron) to another Windows 7 Laptop( SOny vaio) worked perfectly fine for a day & next day when i tried 2 connect , it shows “connected” status. But It shows “No Internet Access” message. I tried to share the files also,but it is not working., Deleted the network profile and did the set up allover again but still not working.

    • I got a USB modem internet , when i plug it in and setup the wireless connection it appears on my i phone as i named it , i connect to my laptop using iphone it connects !! BUT NO internet access …. !! what is wrong … there’s must be somthing i have 2 doo , can u help ? !

  6. Is there a way to share a wired internet connection through wirelees card on PC with my Andorid phone? OS Win7.
    I tried program called VirtualRouter but its not working 🙁

    • You can follow the first part of the tutorial to set up the ad hoc network on your Windows 7 PC. Then just use your Android phone to connect this ad hoc network.

  7. Some users might have to disable the Microsoft Virtual Miniport adapter. This is located in the adapters list. I could not get internet connection sharing to work and the only adapter available to share was the virtual miniport adapter. After an hour of reading posts and wasting time, I finally disabled the miniport adapter as part of my trial and error troubleshooting. That did the trick for me and I was finally able to share the wired internet connection on one WIN7 computer with another WIN7 computer via wireless. Microsoft self-help options were zero help and it was by pure tenacity that I figured this out.

  8. I am trying this on a laptop with 64 bit Windows 7. At step 5 i don’t seem to be getting the option of choosing which Wireless connection to share the Local Area Connection with (even after checking the box for sharing).

    My goal is to share my wired connection with my smartphone via my laptop wirelessly. When using a software called Connectify, I am able to accomplish this. However, this software made it impossible for me to get my laptop to connect to a wireless network (even after disconnecting from the add-hoc and deselecting the sharing option in the Local area connection).

    Are there any known solutions to the problem at step 5, or any different methods for setting up and sharing the internet without a router?

  9. i have pc with windows 7 and i want to make an ad hoc connection i followed the steps but i always get unexpected error
    pleas help me what should i do

  10. I have one problem when trying to connect a device to my win 7 ad hoc: no internet connection is being shared. I have enabled ICS on computer “A”. I can connect to the adhoc network no problem but there is no internet being shared.

    Any thoughts?

    Thanks, Rick

  11. Hi
    I m trying to connect a (A) sony vaio with window 7 and (B)dell latitude with xp through adhoc … i did all the steps on A to setup a adhoc network and then on B i tried to connect it .. it says connected on B but its only receiving not sending any bits … while on A it says No Internet Access … i have tried all the things but of no use … let me know if any one can help .. appreciate it .. thanks

  12. good day,
    for people who are having unexpected error problem
    you have to make sure that the ICS service “Internet Connection Sharing” is enabled
    go to run
    type services.msc
    Enable Internet Connection Sharing(ICS) and set to Automatic
    this should resolve the problem when sharing your internet modem to a ad-hoc connection

    • I have this done but the allow internet sharing button is still not available. My ICS is is up for my wired internet but the button will not appear. I used to have the button available, but had to restart my computer and it has not been able to reappear.

  13. good day!

    i shared a connection with ad-hoc.. but when someone connect in my ad-hoc

    a network error message view that say’s “Another computer on this network has the same IP address as this computer. Contact your network administrator for help resolving this issue. More details are available in the Windows System event log.”

    Can you please help me what to do?
    Thanks in advance.

  14. Hi…I done all steps well.but i am unable to connect to internet on computer B..There showing error as No Internet Access..Not only with Ad Hoc, with connectify also same problem occured.Please help me to share my internet with other devices.

    And with ad hoc only share LAN net or other data cards internet..Please tell me???


  15. is it possible to create a logon screen on the ad hov network dat is created so dat users will have to login with different passwords?

Leave a Reply

Social Widgets powered by

Advertisment ad adsense adlogger