Table of contents:

How To Distribute Wi-Fi Via The Command Line From A Laptop Or Computer
How To Distribute Wi-Fi Via The Command Line From A Laptop Or Computer

Video: How To Distribute Wi-Fi Via The Command Line From A Laptop Or Computer

Video: How To Distribute Wi-Fi Via The Command Line From A Laptop Or Computer
Video: How to distribute Wi-Fi using cmd in Windows 2024, November
Anonim

How to create a Wi-Fi hotspot on a Windows 10 desktop or laptop: using the built-in command line tool

Sharing Wi-Fi from PC
Sharing Wi-Fi from PC

Not all novice PC users know that it is not necessary to install a router in the house in order to get a wireless Wi-Fi network that can be used through any device, including mobile devices and tablets. The function of the router can be performed by the PC itself (stationary computer or laptop) if it has a built-in Wi-Fi adapter. If you have a USB-modem with paid internet or an Ethernet cable that connects to your PC, make an access point on your computer. You can perform the task both with the help of third-party utilities, and through the built-in standard Windows console "Command Line".

Content

  • 1 We use a laptop or a regular PC as a router thanks to the "Command line"

    • 1.1 Allow Sharing
    • 1.2 The process of creating your own "Wai-Fai"
    • 1.3 Connecting other devices to the network
  • 2 What can be the problems with the connection

    • 2.1 If the point is visible, but there is no Internet
    • 2.2 The message in the console "Failed to start the hosted network" and the absence of a point in the list of available

We use a laptop or a regular PC as a router thanks to the "Command Line"

The organization of the distribution of a Wi-Fi signal from a PC consists of three stages. We will look at each of them in detail.

Sharing permission

First, let's give permission to other devices nearby to use the Internet on a PC. This can be done through the "Network Connections" system panel:

  1. We can open the window rather quickly through the Run panel: hold down Windows and R (it is not necessary to rearrange the layout to English - in any language the combination should work). Insert or manually type the code ncpa.cpl - click on OK or "Enter" on the keyboard to start its execution.

    Ncpa.cpl command
    Ncpa.cpl command

    Paste the ncpa.cpl command and click on OK

  2. In case this method does not work for you, we will give you an alternative way to launch the "Network Connections" window: right-click on the network icon on the "Taskbar" in the right corner, which is usually located to the left of the sound icon. We select the second line to launch a window with Internet parameters.

    Network icon menu
    Network icon menu

    In the additional menu of the network icon, open the parameters

  3. In the first tab about the connection status, scroll down the page and click on the penultimate link for the network control center.

    Center launch
    Center launch

    Open through the "Settings" "Network and Sharing Center"

  4. When we find ourselves in the center, follow the second link on the left to change the parameters of different adapters.

    Control center
    Control center

    Change adapter parameters

  5. We find the connection of the wireless network - we click on the tile once with the right button and in the menu we click on the line leading to the connection properties.

    Item "Properties"
    Item "Properties"

    Open the properties of the wireless connection

  6. In the second block "Access" we put a checkmark to the left of all the items - to save the changes, click on OK. If a system window appears, in which the "operating system" requires confirmation, click on "Yes".

    Opening access
    Opening access

    Check all the boxes and save the changes

The process of creating your own "Wai-Fai"

When access is open, we proceed to creating the Wi-Fi point itself using the Command Line console:

  1. It is necessary to run this editor with a black background as an administrator. To do this, open the "Search" panel through the magnifying glass icon next to the "Start" button and type a query corresponding to the name of the console, or the short code cmd.

    Search "Windows"
    Search "Windows"

    In "Search" enter the command cmd

  2. Right-click on the line with the desired classic utility and click on the option with the mention of the administrator.

    Run as administrator
    Run as administrator

    Run the console as administrator

  3. If you cannot open the search panel, hold down R and Windows and write the same cmd formula in the "Open" line. To launch the console as administrator, you must press three keys at once: Enter + Shift + Ctrl.

    Run window
    Run window

    In the Run window write cmd

  4. Another launch method is through the Start panel. We are looking for the console in the list of applications, right-click on it, select the second menu "Advanced", and in it there is already opening with administrator rights.

    Launching the console through "Start"
    Launching the console through "Start"

    You can open the editor with administrator rights from the start menu

  5. In the built-in utility window, insert the first netsh wlan show drivers formula and press "Enter".

    Netsh wlan show drivers command
    Netsh wlan show drivers command

    Paste and run netsh wlan show drivers command

  6. Pay attention to the line "Hosted network support" - the word "yes" must be present. Only in this case can we proceed to the next steps. If the answer is “no,” use the solution described in the section below about Wi-Fi point problems in this article.

    Netsh wlan show drivers command result
    Netsh wlan show drivers command result

    If the line about support is "yes", follow these steps

  7. Now we insert or type on our own (only very carefully) a formula like: netsh wlan set hostednetwork mode = allow ssid = "katherine" key = "3456789jh". Instead of katherine, you can put any other word consisting of Latin characters and numbers - this is the name of your future point. Instead of 3456789jh, put your password - it is the password that other users will enter on their devices to access the network through your Wi-Fi. We execute the command with Enter.

    Command to create a point
    Command to create a point

    In the command to create a point, you need to specify the point name and password to it

  8. The editor should display the message "Network mode allowed …". Only then do we move on to other steps.

    Successful command execution
    Successful command execution

    If the mode is enabled, run point

  9. Now it remains to give the command to the created point to work. Insert the formula netsh wlan start hostednetwork.

    Point launch
    Point launch

    Using the netsh wlan start hostednetwork formula, start point

  10. If you need to make the point inaccessible for some reason, we stop it using the netsh wlan stop hostednetwork formula, executed in the same console.

    Stop point
    Stop point

    With the code netsh wlan stop hostednetwork, you can stop the point

  11. When the point works, go to the already familiar panel with a list of network connections, using the detailed instructions from the previous section of this article. Click on the created point with the right mouse button, go to the connection properties and put all the checkmarks in the access tab again - save the changes.

    Access tab
    Access tab

    Check again all the items in the "Access" tab

Please note that when you restart your PC with an activated Wi-Fi point, distribution is automatically deactivated. To start the virtual router again, you need to enter the formula netsh wlan start hostednetwork in the console again - you do not need to re-create the network.

Connecting other devices to the network

When the network is already active, take another device, for example, the same "laptop" and do the following:

  1. Open the network panel, if you have Windows on another device, through the "Notification area" on the "Taskbar". Find the previously created point.

    Network Panel
    Network Panel

    Find the point on the network panel

  2. Open the connection and click on "Connect".

    Connect button
    Connect button

    Click on "Connect" on the panel

  3. Enter the password that you previously set through the Command Prompt console and click on Next. Check the connection.

    Entering the security key
    Entering the security key

    Write the security key and click on "Next"

What can be the connection problems

After creating a wireless access point or already during its use, various problems may arise. Let's consider the most common ones.

If the point is visible, but there is no Internet

If the user of another device connected to the visible point, but did not get access to the Internet, then the connection is blocked by antivirus or "Firewall" installed on the PC. To check this, you need to temporarily deactivate the security utilities. If after that the Internet appeared on the devices, add this connection to the list of exclusions. In the case of a utility from ESET, you can work with exceptions as follows:

  1. Open advanced settings.

    Extra options
    Extra options

    Open additional options via the context menu

  2. Expand the "Network" tab and go to the "Personal firewall" section.
  3. In the "Filter Mode" field, select "Interactive". Now, when you try to establish a connection that does not match the rules, you will receive an access request.

    Interactive mode
    Interactive mode

    Turn on interactive mode in filtering

The message in the console "Failed to start the hosted network" and the absence of a point in the list of available

If in the line "Network support" you had the value "no", you need to run a couple more commands in the black editor and make sure that the virtual network adapter from Microsoft is not turned off in the "Device Manager".

Lack of support
Lack of support

The line "Support for hosted network" may contain values "no"

The same actions and plus the driver update of the same network adapter in the manager must be performed when the message "Failed to start the hosted network" appears when trying to activate the "Wi-Fi" point.

Point launch error
Point launch error

If the error "Failed to start" occurs, then the network adapter is disabled in the manager

The course of action in the beginning will be as follows:

  1. In a black editor running with PC administrator rights, we type or paste using the V + Ctrl combination two formulas netsh wlan set hostednetwork mode = disallow and netsh wlan set hostednetwork mode = allow. We execute them in turn, that is, after entering each, click on "Enter".

    Executing two commands
    Executing two commands

    Restart hosted mode with two commands

  2. Now we open the system panel "Device Manager" on the display. In the top ten, you can simply right-click on the Start icon and click on the desired item in the list. The same menu is opened by the hot combination X + Windows.

    Start Menu
    Start Menu

    In the context menu "Start" select "Device Manager"

  3. If the context menu does not appear on the display, click on the computer icon on the "Desktop", and then click on its properties.

    Shortcut menu
    Shortcut menu

    From the shortcut menu "This PC" select "Properties"

  4. On the system panel with general information about the device, we find the link for the dispatcher on the left and follow it.

    System Information Window
    System Information Window

    In the system information window, open the manager

  5. In the window with the list of device types, open the list of network adapters and look for a line with the words Microsoft and Virtual. If this equipment is turned off, a small arrow pointing down will be located on its icon to the left.

    Network adapters
    Network adapters

    Find Microsoft Virtual Network Adapter

  6. Right-click on this item and select the "Enable" function - wait for the dispatcher to activate the adapter. After that, open the console again, re-create the "Wi-Fi" point and launch it.

    Turning on the device
    Turning on the device

    Turn on the adapter device via the context menu

If the described method did not help, try updating the driver of the previously specified network adapter:

  1. Expand the manager interface, find the network adapter, right-click on it and select the update option.
  2. In the update wizard, select automatic search.

    Automatic search
    Automatic search

    Run automatic update search

  3. Wait while the system tries to find the upgrade on the network.

    Driver search
    Driver search

    Wait for the system to find drivers

  4. As a result, if there are updates on the network on the official resources, the wizard will download and install them himself. If there is no update, you will be notified about the relevance of the current drivers.

    Current drivers
    Current drivers

    If there are no updates on the network, the system will inform you that the latest drivers are installed

The upgrade and activation of the network adapter must also be performed if it later turned out that the created and activated access point is not visible on other devices.

The Windows 10 system allows you to create a Wi-Fi access point without using third-party utilities - simply by executing certain formulas in the Command Line console. In order for users of other devices nearby to be able to access this point, you must first open it in the settings - through the "Network Connections" window. If there is any problem, try restarting the hosted network mode, enable and update the firewood of the Microsoft Virtual network adapter.

Recommended: