It's a common situation where a wired internet connection is connected to a desktop computer or laptop, but mobile devices desperately need network access. Often, the router is far away, the mobile 3G/4G signal is weak, and you need to set up a wireless network right away. Built-in Windows operating system tools allow you to turn your laptop into a fully-fledged router without installing third-party software.
Usage command line (CMD) is the most reliable and "clean" way to accomplish this task. Graphical interfaces may vary across different versions of Windows, with menus sometimes hidden deep within settings, while console commands work identically on Windows 7, 8, 10, and 11. This method gives the user complete control over the parameters of the network being created.
In this guide, we'll cover in detail the process of activating virtual adapter mode, configuring security settings, and, crucially, properly routing traffic. You'll learn how to diagnose problems if your phone won't connect to the internet and how to manage your connection like a pro.
Checking virtual network support and preparation
Before entering complex commands, you need to make sure your laptop's network adapter is technically capable of operating in access point mode. Not all drivers and card models support this feature, especially on very old devices. To check, open the console with administrator privileges.
Press the key combination Win + X and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)" from the menu. In the window that opens, enter the command netsh wlan show drivers and press Enter. The system will display a detailed report about the wireless adapter driver.
Carefully review the resulting list of lines. We're interested in the line "Hosted network supported." If it says "Yes," your hardware is ready to use. If it says "No," you won't be able to create an access point using standard Windows tools—you'll need to update your drivers or replace the adapter.
It's also worth checking whether the Wi-Fi module itself is enabled. Sometimes it can be disabled by a physical switch on the laptop or software-based via Airplane Mode. Make sure the wireless connection is active, even if it's not connected to anything.
Creating and configuring a virtual access point
After confirming support, we proceed to network creation. The setup command requires a network name (SSID) and password. The name can be anything, but preferably in Latin characters to avoid encoding issues on older devices.
The password must be at least 8 characters long. The encryption standard used is WPA2-Personal, which is the most compatible and secure for home use. Enter the command carefully, including syntax and spaces.
To create a network, use the following template:
netsh wlan set hostednetwork mode=allow ssid=MyNetworkName key=MyPassword123 keyUsage=persistent
Here ssid — this is the name of your future network that phones will see. Parameter key sets the password. Argument keyUsage=persistent means that the specified password will be saved and you will not have to enter it again the next time you start the access point after restarting your computer.
If the system responds with the message "The hosted network has been configured successfully," you can proceed to launch. However, before doing so, it's recommended to create a checklist to ensure nothing is missed during the setup process.
☑️ Ready to launch the access point
Starting the network and connecting devices
After successful configuration, the virtual adapter is created, but it is not yet active. To start it, use the command netsh wlan start hostednetworkOnce completed, the status message "Hosted network started" should appear.
Now pick up your smartphone or tablet. Open the list of available Wi-Fi networks. You should see the name (SSID) you created. Tap it and enter the password you set in the previous step. At this point, the devices will connect to each other, but you won't have internet access yet.
The connection status on your phone may show "Connected, no internet access." This is normal, as we've only created a local network between the laptop and the phone, but haven't configured traffic forwarding from the external network.
To stop Internet distribution, use the command netsh wlan stop hostednetworkThis is convenient to do when the network is no longer needed, so as not to waste system resources and create unnecessary entry points for potential attacks.
Setting up Internet access sharing (NAT)
The most important step is to allow devices in the newly created network to access the global network through the laptop's primary connection (Ethernet or other Wi-Fi). To do this, go to the Network and Sharing Center.
Click Win + R, enter ncpa.cpl and press Enter. The "Network Connections" window will open. Find your primary adapter, the one your laptop uses to connect to the internet (usually called "Ethernet" or "Local Area Connection"). Right-click it and select "Properties."
Go to the "Sharing" tab. Check the box next to "Allow other network users to connect through this computer's Internet connection." The "Home network connection" drop-down list will appear below.
From this list, select the virtual adapter we created earlier. It's usually called "Wireless Network Connection" with a number (e.g., Wireless Network Connection 2 or 3) and has a subtitle of "Microsoft Wi-Fi Direct Virtual Adapter." After applying the settings, your phone should be able to connect to the internet.
⚠️ Attention: After enabling public access, your primary IP address on your local network may change to a static one (usually 192.168.137.1). If you're on a corporate network with strict restrictions, this can cause an address conflict.
Sometimes changes don't take effect immediately. If the internet doesn't appear, try disabling and re-enabling the primary Ethernet adapter in the Network Connections window. Reconnecting the Wi-Fi connection on the phone itself also helps.
Table of basic network management commands
For ease of use, save or write down the basic commands you might need while using the access point. Knowing these commands will allow you to quickly diagnose the network status without searching for instructions.
| Team | Description of action | Result of execution |
|---|---|---|
netsh wlan show drivers |
Checking mode support | Hosted Network Driver and Support Information |
netsh wlan set hostednetwork... |
Creating a network profile | Setting up an SSID and password, creating a virtual adapter |
netsh wlan start hostednetwork |
Launching an access point | Activating Wi-Fi signal distribution |
netsh wlan stop hostednetwork |
Stop distribution | Deactivating a virtual adapter |
netsh wlan show hostednetwork |
View status | Information about connected clients and parameters |
Using the command show hostednetwork This is especially useful for monitoring: at the bottom of the report, you'll see a list of clients (MAC addresses of connected devices). This allows you to ensure that no unauthorized users have connected to your network.
What should I do if the client list is empty, even though the phone is connected?
This may mean that your phone isn't receiving an IP address automatically. Try selecting "Advanced Settings" in the Wi-Fi settings for this network and setting the IP settings to "Static," with the IP address 192.168.137.100, the gateway 192.168.137.1, and the DNS address 8.8.8.8.
Diagnosing and troubleshooting common errors
In practice, the setup process rarely goes perfectly the first time. The Windows operating system may block the connection due to firewall settings or service conflicts. Let's look at the most common failure scenarios.
One common issue is error 80004005 when starting a network. This often occurs if the Internet Connection Sharing (ICS) service is disabled. Check this via services.msc, find the service and make sure it is running and the startup type is set to Automatic.
Another common scenario: the network is created, devices connect, but pages don't load in the browser. Check if you have a proxy server enabled in your browser. Sometimes proxy settings apply system-wide and interfere with NAT functionality. You should also try temporarily disabling your third-party antivirus software.
If your laptop goes into sleep mode, the Wi-Fi hotspot will likely turn off. To prevent this, go to Control Panel → Power Options → Change plan settings → Change advanced settings. In the Wireless adapter settings section, set the power mode to Maximum performance, and in the USB and hard drive settings, disable the option to turn off to save power.
⚠️ Attention: Antivirus packages (Kaspersky, ESET, Avast) often have their own built-in firewalls that can block public internet access even if Windows settings are correct. If you encounter problems, add your virtual network to the antivirus's firewall exceptions.
Keep in mind that the upload speed is limited by the download speed of the laptop's Wi-Fi adapter. If the laptop receives internet via Wi-Fi and distributes it via Wi-Fi, the speed may drop by half due to operating in half-duplex mode. Ideally, the laptop should be connected via cable (Ethernet) and distribute the signal over the air.
Automating launch via script
Constantly entering commands into the console can be tedious, especially if the access point needs to be started daily. A simple and effective solution is to create a bat file. This is a text file containing a sequence of commands that are executed when double-clicked.
Create a text document on your desktop, name it something like, start_wifi.txtOpen it and write inside:
netsh wlan set hostednetwork mode=allow ssid=MyHomeNet key=SuperPass123
netsh wlan start hostednetwork
Save the file and rename the extension from .txt on .batNow, to start the network, simply run this file. However, for the script to work, it must be run as administrator. Right-click the file → "Run as administrator."
Similarly, you can create a file to stop the network with the command netsh wlan stop hostednetwork and name it stop_wifi.batThis will allow you to manage the access point with one click, without opening the console each time.
Is it possible to share Wi-Fi if the laptop itself is connected via Wi-Fi?
Technically, this is possible, but not all adapters support simultaneous operation in both client and access point modes. This often requires two physical Wi-Fi modules or specific driver support for Wi-Fi Direct technology. The stability of such a connection is usually lower than with a wired laptop connection.
How many devices can be connected to such a point?
The 100 device limit is standard for the team. netsh in Windows. However, the actual number depends on the power of your Wi-Fi adapter and the processor load. For optimal performance, it's recommended to connect no more than 5-7 devices simultaneously.
Does this method work on Windows 11?
Yes, teams netsh wlan are fully supported in Windows 11. However, in this version of the OS, Microsoft actively promotes the "Mobile Hotspot" feature via a graphical interface, which is a more modern implementation of the same functionality, but the console method remains functional and reliable.