Computers and modern gadgets

This article describes how to distribute the Internet via Wi-Fi using the built-in Windows tools using the operating system as an example, the procedure for the operating system is the same.

In the Anniversary Update and later updates for Windows 10, the ability to create an access point is implemented in the graphical interface of the system, for how to set up an access point in Windows 10 Anniversary Update and later updates for Windows 10, read the article

Why might this be needed? For example, you have purchased a tablet or phone and would like to access the Internet from it at home without purchasing a router. In this case, you can distribute Wi-Fi from a laptop or a personal computer with a Wi-Fi adapter, which are connected to the network both wired and wirelessly. Let's see how to do it.

Run Command Prompt as Administrator. To do this, press the key combination + X and select the item in the context menu that appears. Command line ( A administrator).

In the opened window Administrator: Command line enter the command:

press a key Enter↵, and see what it says about hosted network support. If it is supported, then you can continue. If not, then most likely you have not installed the original driver for the Wi-Fi adapter (install from the manufacturer's website), or you really have a very old device.

netsh wlan set hostednetwork mode=allow ssid=testwifi key=12345678
and press the key Enter↵
Where testwifi is the name of the network, it can be anything, in English letters.
And 12345678 is the network password. It will need to be entered on the device that you will connect to Wi-Fi. Specify a password of at least 8 characters. You can use numbers and English letters.
After entering the command, you should see confirmation that all operations have been completed: wireless access is allowed, the SSID name has been changed, the wireless network key has also been changed.

Enter another command:

Press the key Enter↵

This is the command to start the access point.

Next, we allow the use of general access to the Internet.
Press the keyboard shortcut + R in the dialog box that opens Run enter ncpa.cpl and press the key Enter↵

In the opened window Network connections right-click on the connection through which you receive the Internet (in this example it is ethernet, since the laptop is connected to the Internet via a network cable), and in the context menu that opens, select Properties

In the opened window Ethernet properties go to tab Access. Check the box next to Allow other network users to use this computer's Internet connection, in the dropdown list Home network connection: select the network that appeared after starting the access point. Most likely, yours will look something like the screenshot below. Click the button OK

All now you can take your device and connect it to the Internet via Wi-Fi, which is already distributing your laptop.

And one more command that may be useful to you in order to find out the status of your wireless network, the number of connected clients or the Wi-Fi channel:

To stop the distribution, use the command:

When using this method, the distribution of the Internet via Wi-Fi stops after each shutdown or restart of the laptop (personal computer). One solution is to run the command:

netsh wlan start hostednetwork

or create a bat file with this command and add it to startup, or run it yourself when necessary.

To delete the created access point, run the command:

netsh wlan set hostednetwork mode=disallow

Problems when sharing Wi-Fi from a laptop

■ The most common problem is when the device connects to the access point created on Windows 8.1, but the Internet does not work. Sites do not open. Or when there are problems getting an IP address.
Solution: completely disable your antivirus, antivirus utilities, . Most likely they are blocking the connection. If everything works after disabling the antivirus, then you need to add the connection to the antivirus exclusions.
Check your internet sharing settings as in the screenshot above.
Also, check that you are distributing exactly the connection through which the laptop (personal computer) has access to the Internet.
■ There is also a problem when you receive a message that this type of network is not supported - update the drivers for the laptop (personal computer) Wi-Fi adapter, and not through Windows, but from the official website of your device manufacturer.

When attempting to create a virtual Wi-Fi network using the netsh wlan start hostednetwork command, the user may encounter a message that hosted the network failed. In this article, I will explain what this error is, and also explain how to fix the “The Hosted Network Couldn’t be Started” problem on your PC.

Among the causes of the netsh wlan start hostednetwork error, I would note the following:


Fixing netsh wlan start hostednetwork error

First, check if your computer has a Wi-Fi adapter. If for a laptop and a netbook this is implied a priori, then for owners of stationary computers everything is not so clear. Look for the Wi-Fi adapter in the Device Manager (subsection "Network adapters"), there it is usually listed as an adapter for a wireless network.

It also happens that the wi-fi on the PC is turned off by the user himself (either through the button to turn off the wi-fi module, or by pressing a keyboard shortcut, for example, for me, it's Fn + F2). Make sure your Wi-Fi module is enabled and working. So what to do?

Method 1. Enable a virtual adapter


Now you can connect your virtual network through the standard "netsh wlan start hostednetwork" command.

Method 2: Restarting the adapter

  1. Again we go into the device manager, we find "Network adapters".
  2. We find the name of our main wireless network adapter.
  3. Press the right mouse button, and select "Disable" first.
  4. And then a couple of seconds after turning off, select "Enable".

Method 3. Use commands

If the previous two methods did not help you to start the netsh wlan start hostednetwork hosted network, then Microsoft recommends that you perform the following steps:


How it all looks visually can be seen in the video:

Method 4. Checking whether our adapter supports a virtual access point

  1. Press the key combination Win + R, and in the window that appears, type cmd.
  2. At the command prompt, write netsh wlan show drivers and press enter.
  3. In the result, we check the point about supporting the hosted network, and if it says “no”, then your adapter is not suitable for creating a virtual Wi-Fi network.
  4. In this case, it remains to advise you to buy an external Wi-Fi adapter that uses a USB connection for its work.

Conclusion

In most cases, the indicated problem with netsh wlan show drivers is solved by enabling a virtual adapter, which is often hidden from the user's eyes. You can also advise restarting your Wi-Fi adapter, in addition, some of the users were helped by a set of tips from Microsoft experts on disabling and enabling a hosted network. Well, for those who did not have a Wi-Fi adapter at all, we can advise you to purchase such an adapter at the nearest specialized store.

In contact with

It just so happened that at work to get a full-fledged Internet without restrictions, I have to use a netbook and a 3g modem. Recently, having bought an iPod Touch, I really wanted to connect it to the Internet. If the smartphone could still get out on the Internet on its own, then with the player it is somewhat more difficult.

One option is to connect with a sync cable. The option is not very convenient, since there is absolutely no desire to carry a cable with you all the time, and you don’t want to install iTunes either. The second option, the one described in this article, is connecting via WiFi. Already on Habrahabr, but for Linux. Our task is to configure the same thing under Windows.

So what do we have

- Netbook, ASUS 1215B
- Internet via USB 3g modem
- Player and smartphone with WiFi

Task

- Get internet on all devices

Solution

Before you start, many people advise you to update the WiFi card driver on your computer. Personally, I have not done this, but everyone decides for himself.
Ways
- You can use graphical utilities such as Connectify and Virtual Router. They work, even work well, but eat up resources. Some people complained that they eat resources very much.

You can do everything yourself through the console using netsh. This is the way I chose. All actions must be performed on behalf of the Administrator.

Create a network
First of all, you need to create a wireless network with the following command
netsh wlan set hostednetwork mode=allow ssid="MyHomeInternet" key="pass12345678" keyUsage=persistent
where MyHomeInternet is the network name (ssid), pass12345678 is the login password.

The success of the command will look something like this:
Hosted network mode is allowed in the wireless network service. Hosted network SSID changed successfully. The hosted network user key passphrase was successfully changed.
Now you can go to Control Panel \ \ . I have it called "Wireless Network Connection 2".

Connection management
Since the connection is in the "No connection" status, we need to enable it. To do this, run the command:
After receiving the phrase Hosted network launched, the network will be launched and in the list of connections we will see the connection of your network. In our example, this is MyHomeInternet.

To stop the network, you must use the command:
netsh wlan stop hostednetwork

We connect the Internet
A WiFi network has been created and you can even connect to it, but the Internet will most likely be absent. In order to correct this misunderstanding, it is necessary:
- go to Control Panel \ Network and Sharing Center \ Change adapter settings;
- go to the properties of the connection through which you go online(I have this Internet MTS);
- tab Access;
- check the box next to " Allow other network users to use this computer's Internet connection" and from the list select our created network - "Wireless Network Connection 2";
- click OK;
- disable and enable 3g-connection; (ideally restart your computer)
- disable and enable WiFi network.
What happened
Ideally, after these steps, the laptop will turn into a small WiFi point. To do this, take the iPod, turn on WiFi and see our created MyHomeInternet network. Enter the password and connect. The Internet is.

Restrictions

- first of all, after each Windows startup, you will have to start the network using the command netsh wlan start hostednetwork. It is solved by writing a small script and sending it to autoload. Another option is to create a shortcut on the desktop and start the network only when necessary.
- OS must be Windows 7.
- the connected device must support WPA2-PSK/AES

Problems

Network not created
- update the wireless adapter driver to a newer one
- run console as administrator
Network created but not starting
- perhaps restarting the computer and starting the network as administrator will help
The network has been created, started, but it is impossible to connect to it
- check password
- manually set the network settings in the properties of the TCP / IP connection on the "server" and the client. For example, for the server: ip - 192.168.137.1, mask - 255.255.255.0 and for the client: ip - 192.168.137.2, mask - 255.255.255.0, gateway - 192.168.137.1, dns - 192.168.137.1
Connected to the network, but the Internet can not go
- make sure that you share it (see paragraph "Connect the Internet")
- try to navigate not by domain name, but by IP address. If it does, then it's time to think about entering the DNS server into the client and/or server settings.
Outcome
As you can see, such a simple task can be solved without the use of third-party software. Nevertheless, sometimes it happens that you can’t do without it. In my case, there were problems with DNS and even specifying the Google Public Domain server in the TCP / IP settings, I could not do anything. Therefore, I had to resort to the help of the BIND package and configure it to 127.0.0.1. It is just as easy to set up, but more on that in the next mini-article.

As you probably know, a Windows computer can easily be turned into a Wi-Fi hotspot that other devices can use to access the Internet ( , ).
However, Microsoft did not provide normal means of removing such an access point in Windows 10 when it is no longer needed.


The organization of the operation of such an access point is implemented by creating a separate virtual Wi-Fi adapter, which is called:
  • In Windows 7 - Microsoft Virtual WiFi Miniport Adapter
  • In Windows 10 / Windows 8.1 - Microsoft WiFi Direct Virtual Adapter

How to usually remove the Microsoft virtual Wi-Fi adapter

As a rule, users perform the following steps to remove a virtual Wi-Fi adapter:

However, the problem is that with such a disconnection of the Microsoft virtual Wi-Fi adapter, after restarting the computer, this device again appears in the list of network cards

The fact is that with such a shutdown, the hidden virtual adapter still remains in the system (it is not deleted), and if you need to create a new access point, then a new virtual adapter with an ordinal index will appear in the system (Microsoft Wi-Fi Direct Virtual Adapter # 2 , Microsoft Virtual WiFi Miniport Adapter #3, Microsoft Virtual WiFi Miniport Adapter #4, etc.), and it will still use the configuration of the old access point. Thus, several virtual adapters can be present in the system at the same time, and only one of them can be active.

How to properly reset Microsoft Virtual WiFi Miniport Adapter

Access point settings are stored in the registry, so to clear them you need to in the registry branch HKLM\System\CurrentControlSet\Services\WlanSvc\Parameters\HostedNetworkSetting s delete DWORD parameter HostedNetworkSettings.

You can remove the parameter with the command:

reg delete hklm\system\currentcontrolset\services\wlansvc\parameters\hostednetworksettings /v hostednetworksettings

Now you need to restart your computer. After downloading, check that the hosted network settings are reset

net start wlansvc
netsh wlan show hostednetwork

In field Settings section Hosted network settings value should remain Not configured.

Removing the Microsoft Virtual WiFi Adapter on a Computer with an Intel WLAN Card

With Intel WLAN adapters, there is another problem. If the computer has the Intel My WiFi Technology / Intel My WiFi Technology module installed (usually installed with the Intel PROSet / Wireless driver package), the system may have 2 Microsoft Virtual WiFi Miniport network adapters that cannot be removed.

In this case, you need to find Intel PROSet / Wireless in the list of installed software in the control panel, change it and remove the Intel My WiFi Technology component.

After that, one virtual adapter should disappear. The second one can be removed by the method described above.

It just so happened that at work to get a full-fledged Internet without restrictions, I have to use a netbook and a 3g modem. Recently, having bought an iPod Touch, I really wanted to connect it to the Internet. If the smartphone could still get out on the Internet on its own, then with the player it is somewhat more difficult.

One option is to connect with a sync cable. The option is not very convenient, since there is absolutely no desire to carry a cable with you all the time, and you don’t want to install iTunes either. The second option, the one described in this article, is connecting via WiFi. A similar task and its solution have already been mentioned on Habrahabr, but for Linux. Our task is to configure the same thing under Windows.

So what do we have

- Netbook, ASUS 1215B
- Internet via USB 3g modem
- Player and smartphone with WiFi

Task

- Get internet on all devices

Solution

Before you start, many people advise you to update the WiFi card driver on your computer. Personally, I have not done this, but everyone decides for himself.
Ways
- You can use graphical utilities such as Connectify and Virtual Router. They work, even work well, but eat up resources. Some people complained that they eat resources very much.

You can do everything yourself through the console using netsh. This is the way I chose. All actions must be performed on behalf of the Administrator.

Create a network
First of all, you need to create a wireless network with the following command
netsh wlan set hostednetwork mode=allow ssid="MyHomeInternet" key="pass12345678" keyUsage=persistent
where MyHomeInternet is the network name (ssid), pass12345678 is the login password.

The success of the command will look something like this:
Hosted network mode is allowed in the wireless network service. Hosted network SSID changed successfully. The hosted network user key passphrase was successfully changed.
Now you can go to Control Panel \ \ . I have it called "Wireless Network Connection 2".

Connection management
Since the connection is in the "No connection" status, we need to enable it. To do this, run the command:
After receiving the phrase Hosted network launched, the network will be launched and in the list of connections we will see the connection of your network. In our example, this is MyHomeInternet.

To stop the network, you must use the command:
netsh wlan stop hostednetwork

We connect the Internet
A WiFi network has been created and you can even connect to it, but the Internet will most likely be absent. In order to correct this misunderstanding, it is necessary:
- go to Control Panel \ Network and Sharing Center \ Change adapter settings;
- go to the properties of the connection through which you go online(I have this Internet MTS);
- tab Access;
- check the box next to " Allow other network users to use this computer's Internet connection" and from the list select our created network - "Wireless Network Connection 2";
- click OK;
- disable and enable 3g-connection; (ideally restart your computer)
- disable and enable WiFi network.
What happened
Ideally, after these steps, the laptop will turn into a small WiFi point. To do this, take the iPod, turn on WiFi and see our created MyHomeInternet network. Enter the password and connect. The Internet is.

Restrictions

- first of all, after each Windows startup, you will have to start the network using the command netsh wlan start hostednetwork. It is solved by writing a small script and sending it to autoload. Another option is to create a shortcut on the desktop and start the network only when necessary.
- OS must be Windows 7.
- the connected device must support WPA2-PSK/AES

Problems

Network not created
- update the wireless adapter driver to a newer one
- run console as administrator
Network created but not starting
- perhaps restarting the computer and starting the network as administrator will help
The network has been created, started, but it is impossible to connect to it
- check password
- manually set the network settings in the properties of the TCP / IP connection on the "server" and the client. For example, for the server: ip - 192.168.137.1, mask - 255.255.255.0 and for the client: ip - 192.168.137.2, mask - 255.255.255.0, gateway - 192.168.137.1, dns - 192.168.137.1
Connected to the network, but the Internet can not go
- make sure that you share it (see paragraph "Connect the Internet")
- try to navigate not by domain name, but by IP address. If it does, then it's time to think about entering the DNS server into the client and/or server settings.
Outcome
As you can see, such a simple task can be solved without the use of third-party software. Nevertheless, sometimes it happens that you can’t do without it. In my case, there were problems with DNS and even specifying the Google Public Domain server in the TCP / IP settings, I could not do anything. Therefore, I had to resort to the help of the BIND package and configure it to 127.0.0.1. It is just as easy to set up, but more on that in the next mini-article.

If you notice an error, select a piece of text and press Ctrl + Enter
SHARE:
Computers and modern gadgets