Thursday, 19 October 2017

How to Share an Internet Connection with Other Computers

Looking for a quick way to share your Internet connection with others around you? These days, this is only useful in a handful of situations. I’ve personally only used a shared Internet connection when in a car with a friend who had a laptop tethered to his smartphone.
My iPad was Wi-Fi only, so I was able to connect to his laptop Wi-Fi and get Internet access. The only other time I have used it is when I was staying in a hotel room and they only had a wired Ethernet connection for Internet. I setup my computer and created a personal Wi-Fi network so that everyone else could connect their smartphones, tablets, etc.
In this article, I’ll show you how to share your Internet connection from your Windows computer. Not that this only works well in certain scenarios.
  1. Your computer needs to have more than one network adapter, preferably an Ethernet port and a Wi-Fi card. A 3G/4G device that you tether to your computer can be used in place of an Ethernet port, but you still need the Wi-Fi card.
  2. It’s always best to share your connection by creating a virtual wireless network. Doing it any other way is super convoluted and almost never works. Don’t worry, I’ve tried and I’m a geek.
  3. It’s best to be connected to the Internet via the Ethernet port or tethered device and to leave the Wi-Fi network not connected to any network.
If you match up with those three items above, then you will most likely be successful in setting up a shared Internet connection. Now let’s get started.

Create Virtual Wireless Network

The first thing you want to do is make sure your Wi-Fi network is not connected to any network. Why? We want the Wi-Fi network to use the Internet from the Ethernet port or tethered device, therefore the Wi-Fi network should remain disconnected to start.
You can check this by clicking on Start and then typing in ncpa.cpl and pressing Enter. You should see a red X next to the icon.
wifi disconneted
Now we have to open an Administrative Command Prompt window. Click on Start, type in command, and then right-click on the top result and choose Run as Administrator.
admin command prompt
Next, we have to create our virtual wireless network and start it. To do this, you need to type in the following commands:
create hosted network
netsh wlan set hostednetwork mode=allow ssid="pickaname" key="pickapassword"
netsh wlan start hostednetwork
As you can see, you can choose a SSID for your new network and set the password also. Whatever SSID you set will be the name of the wireless network that shows up on other devices. Once the network has been started, go to Control Panel and open the Network and Sharing Center.
list of networks
You will see the current network you are connected to, which in my case is Ethernet 2. Below that, you should see your new network, which will say No network access and Identifying. If you open ncpa.cpl again or click on Change adapter settings in Network and Sharing Center, you’ll see that Local Area Connection 3 is actually Microsoft Hosted Network Virtual Adapter.
network adapters
Now in order to get the new network to have Internet access, we need to configure the other network connection. In my example, that would be Ethernet 2. Go ahead and click on the blue link for Ethernet 2. You can also go to ncpa.cpl again, right-click on Ethernet 2 and choose Properties.
ethernet properties
This will bring up the status window for the connection. Now click on the Properties button.
ethernet sharing settings
Click on the Sharing tab and then check the Allow other network users to connect through this computer’s Internet connection box. Under Home networking connection, you need to select the adapter name for the new virtual wireless network, which is Local Area Connection 3 in my case. If you don’t know the name of the adapter, go to ncpa.cpl and find the one that says Microsoft Hosted Network Virtual Adapter.
Now when you go to the Network and Sharing Center, you will see that the new connection also has Internet access.
internet connected
That’s it! Now you should have a functioning wireless network that will allows others to connect and use the Ethernet or tethered connection for Internet access. Go to any of your other devices and look for your new wireless network. Connect using the password you set and you should be good to go.
Note that if you want to see how many people are connected to your new wireless network, you have to open a command prompt and type in the following command:
show clients connected
netsh wlan show hostednetwork
Finally, if you are done with sharing your network connection, you can get rid of the virtual wireless network by typing in the following two commands:
stop hosted network
netsh wlan stop hostednetwork
netsh wlan set hostednetwork mode=disallow
Make sure you type in both of these commands so that if you ever need to create the virtual wireless network again, you will be able to do so. That’s about it. Hopefully, this article will help you share your Internet connection easily with others. If you run into any issues, feel free to post a comment. Enjoy!

Looking for a quick way to share your Internet connection with others around you? These days, this is only useful in a handful of situations. I’ve personally only used a shared Internet connection when in a car with a friend who had a laptop tethered to his smartphone.
My iPad was Wi-Fi only, so I was able to connect to his laptop Wi-Fi and get Internet access. The only other time I have used it is when I was staying in a hotel room and they only had a wired Ethernet connection for Internet. I setup my computer and created a personal Wi-Fi network so that everyone else could connect their smartphones, tablets, etc.
In this article, I’ll show you how to share your Internet connection from your Windows computer. Not that this only works well in certain scenarios.
  1. Your computer needs to have more than one network adapter, preferably an Ethernet port and a Wi-Fi card. A 3G/4G device that you tether to your computer can be used in place of an Ethernet port, but you still need the Wi-Fi card.
  2. It’s always best to share your connection by creating a virtual wireless network. Doing it any other way is super convoluted and almost never works. Don’t worry, I’ve tried and I’m a geek.
  3. It’s best to be connected to the Internet via the Ethernet port or tethered device and to leave the Wi-Fi network not connected to any network.
If you match up with those three items above, then you will most likely be successful in setting up a shared Internet connection. Now let’s get started.

Create Virtual Wireless Network

The first thing you want to do is make sure your Wi-Fi network is not connected to any network. Why? We want the Wi-Fi network to use the Internet from the Ethernet port or tethered device, therefore the Wi-Fi network should remain disconnected to start.
You can check this by clicking on Start and then typing in ncpa.cpl and pressing Enter. You should see a red X next to the icon.
wifi disconneted
Now we have to open an Administrative Command Prompt window. Click on Start, type in command, and then right-click on the top result and choose Run as Administrator.
admin command prompt
Next, we have to create our virtual wireless network and start it. To do this, you need to type in the following commands:
create hosted network
netsh wlan set hostednetwork mode=allow ssid="pickaname" key="pickapassword"
netsh wlan start hostednetwork
As you can see, you can choose a SSID for your new network and set the password also. Whatever SSID you set will be the name of the wireless network that shows up on other devices. Once the network has been started, go to Control Panel and open the Network and Sharing Center.
list of networks
You will see the current network you are connected to, which in my case is Ethernet 2. Below that, you should see your new network, which will say No network access and Identifying. If you open ncpa.cpl again or click on Change adapter settings in Network and Sharing Center, you’ll see that Local Area Connection 3 is actually Microsoft Hosted Network Virtual Adapter.
network adapters
Now in order to get the new network to have Internet access, we need to configure the other network connection. In my example, that would be Ethernet 2. Go ahead and click on the blue link for Ethernet 2. You can also go to ncpa.cpl again, right-click on Ethernet 2 and choose Properties.
ethernet properties
This will bring up the status window for the connection. Now click on the Properties button.
ethernet sharing settings
Click on the Sharing tab and then check the Allow other network users to connect through this computer’s Internet connection box. Under Home networking connection, you need to select the adapter name for the new virtual wireless network, which is Local Area Connection 3 in my case. If you don’t know the name of the adapter, go to ncpa.cpl and find the one that says Microsoft Hosted Network Virtual Adapter.
Now when you go to the Network and Sharing Center, you will see that the new connection also has Internet access.
internet connected
That’s it! Now you should have a functioning wireless network that will allows others to connect and use the Ethernet or tethered connection for Internet access. Go to any of your other devices and look for your new wireless network. Connect using the password you set and you should be good to go.
Note that if you want to see how many people are connected to your new wireless network, you have to open a command prompt and type in the following command:
show clients connected
netsh wlan show hostednetwork
Finally, if you are done with sharing your network connection, you can get rid of the virtual wireless network by typing in the following two commands:
stop hosted network
netsh wlan stop hostednetwork
netsh wlan set hostednetwork mode=disallow
Make sure you type in both of these commands so that if you ever need to create the virtual wireless network again, you will be able to do so. That’s about it. Hopefully, this article will help you share your Internet connection easily with others. If you run into any issues, feel free to post a comment. Enjoy!

No comments:

Post a Comment