In situations where wired internet is only available on one device, but wireless access is needed for a smartphone or tablet, a built-in Windows feature comes to the rescue.
Creating a virtual router allows you to turn your laptop or desktop PC into a fully-fledged access point without purchasing additional equipment.
This method is especially relevant in hotels, dormitories, or offices where administrators limit the number of connected devices by MAC addresses or require authorization via a web page for each gadget.
Usage command line gives the user maximum control over the parameters of the created network, allowing flexible configuration of the frequency, encryption type and network name.
Checking technology support and preparing drivers
Before running complex commands, you need to make sure that your computer's network adapter is physically capable of working in Internet distribution mode.
Not all older Wi-Fi modules support the function. Hosted Network, which is the basis of the virtual router in Windows 10 and earlier versions.
For initial diagnostics, open the console with administrator rights and enter the check command:
netsh wlan show drivers
In the list that appears, find the line “Hosted network supported”.
If it says "Yes" then your adapter is ready to use and you can proceed to setup.
If the answer is no, you will need to update your network card drivers to the latest version from the manufacturer's website or replace the adapter with a more modern one.
⚠️ Note: If the driver is installed correctly but there is no support, try temporarily disabling your antivirus or firewall, as they may be blocking the creation of virtual interfaces.
Make sure that the Wi-Fi module itself is enabled on your device, even if you are connected via cable.
Sometimes, to distribute the Internet, it is necessary for the wireless module to be activated physically or programmatically via the keyboard function keys.
Basic setup of a virtual access point
The process of creating a network begins with setting the SSID (network name) parameters and a password to protect against unauthorized access.
Use the following command, replacing MyNetwork to the desired name, and MyPassword for a complex password of at least 8 characters:
netsh wlan set hostednetwork mode=allow ssid=MyNetwork key=MyPassword
The password must contain letters and numbers to ensure security standard. WPA2-Personal.
The system will confirm the successful change of parameters with a message stating that the parameters of the hosted network have been changed.
After this, you need to activate the network itself using the launch command:
netsh wlan start hostednetwork
If everything went well, you will see the message "Hosted network started".
Now the access point you created will appear in the list of available wireless networks on other devices (phone, tablet).
☑️ Checking network settings
However, at this stage, the Internet will not work on the connected devices, since we only created a local network but did not configure traffic forwarding.
For full functionality, you need to complete a few more steps to forward the connection.
Network Address Translation (NAT)
The most critical step is allowing connected clients to access the global network through your primary communication channel.
Click Win + R, enter ncpa.cpl and press Enter to open the Network Connections window.
Find the connection through which your computer receives the Internet (this could be Ethernet, PPPoE, or other Wi-Fi).
Right-click on it, select Properties and go to the Sharing tab.
Check the box next to "Allow other network users to connect through this computer's Internet connection."
In the "Home network connection" drop-down list, select the virtual adapter you created earlier (usually it's called "Wireless Network Connection" with a number).
⚠️ Note: If the Access tab is missing or inactive, make sure the Remote Access Connection Manager service is started and running in automatic mode.
After applying the settings, the system may warn you about changing the IP address of the virtual adapter. 192.168.137.1.
This is normal behavior and means that your computer has become a gateway for all connected devices.
What should I do if the Internet doesn't appear after setup?
If the network is established but the internet isn't working, try disconnecting and reconnecting your primary internet connection. Also, check if your antivirus software is blocking file and printer sharing on the public network. Resetting TCP/IP settings with the netsh int ip reset command can sometimes help.
Managing the created network and stopping distribution
After finishing work or if you need to temporarily disable distribution, you do not need to delete the settings again.
It is enough to use the stop command, which deactivates the virtual adapter:
netsh wlan stop hostednetwork
To restart, simply enter the command again. start, the name and password parameters will be saved in the system memory.
If you want to completely delete the created network and reset the settings, use the command:
netsh wlan set hostednetwork mode=disallow
This action will break all current connections and remove the virtual interface from the list of available networks.
To view the current status, number of connected users, and protection type at any time, enter:
netsh wlan show hostednetwork
This command will display detailed information about the host status, including the MAC addresses of all connected clients.
Typical errors and methods for eliminating them
When setting up via cmd Users often encounter specific error codes that have clear solutions.
The "Failed to start hosted network" error often occurs due to driver conflicts or disabled services.
Check if the WLAN AutoConfig Service (WlanSvc) service is enabled in the Services Manager (services.msc).
It must be running and have the startup type set to Automatic.
Another common problem is error 1068 or virtual adapter freezing.
In this case, reinstalling the Microsoft Wi-Fi Direct Virtual Adapter driver via Device Manager helps.
| Error Code / Symptoms | Possible cause | Solution method |
|---|---|---|
| The hosted network is not running | The driver does not support the mode | Update your Wi-Fi adapter driver |
| No internet access | NAT (Access) is not configured | Enable sharing in the adapter properties |
| The device does not see the network | Frequency incompatibility | Change the range in the driver properties (2.4/5 GHz) |
| Limited connection | IP address conflict | Reset TCP/IP and DNS settings |
Sometimes the problem lies in power saving: Windows may disable the adapter to save power.
Go to the device properties in Device Manager and uncheck "Allow the computer to turn off this device to save power."
Alternative: Mobile Hotspot in Windows 10 and 11
In modern versions of the operating system, Microsoft has introduced a more convenient graphical interface for distributing Wi-Fi.
The feature is called "Mobile Hotspot" and is available in the system settings.
To activate it, go to Start → Settings → Network & Internet → Mobile hotspot.
Here you can switch the toggle switch to the "On" position, set the network name and password without entering commands.
This method automatically manages drivers and services, reducing the likelihood of errors for inexperienced users.
However, the command line remains an indispensable tool for fine-tuning when the graphical interface is not working or is hidden by the administrator.
In addition, through netsh You can create networks with non-standard parameters that are not available in the standard menu.
Questions and Answers
Is it possible to distribute Wi-Fi if the laptop itself is connected to Wi-Fi?
Yes, this is possible if the network card supports simultaneous operation in client and access point mode (Dual Band or virtualization). However, this may not work on older single-band adapters, as they cannot simultaneously receive and transmit signals on the same frequency.
What is the maximum range of such a network?
The range of a virtual access point is limited by the antenna power of your laptop or PC. Typically, it's 10-15 meters indoors without significant obstacles. Computer Wi-Fi modules often have lower transmit power than full-fledged routers.
Is it safe to use a public password?
Using a weak password or no password at all opens your network to traffic interception. If you share your internet connection in a public place, hackers can access your data. Always use WPA2-Personal encryption and a strong key.
Why is the speed on my phone slower than on my computer?
Speed may drop due to encryption overhead, CPU load when processing network packets, or interference in the air. The distance between the phone and laptop also plays a role, as laptops' built-in antennas are often weaker than routers' external antennas.