It's common for a desktop computer to have wired internet, while mobile devices or smart TVs require a wireless connection. Built-in operating system tools allow you to turn your PC into a full-fledged router without installing third-party software, which is especially important for system administrators and advanced users. command line (cmd) provides the most flexible and reliable way to manage network interfaces, bypassing the graphical limitations of standard settings.
This method is based on the support of technology Microsoft Hosted Network, which is built into the core Windows 10 network drivers. This solution is ideal for setting up a temporary network in an office, hotel, or home when the main router is down or its signal doesn't reach the workstation. It's important to understand that for successful implementation, you need to properly configure the adapter and share data, not just enter commands.
Unlike third-party tools, the system method doesn't overload CPU resources with unnecessary processes and guarantees connection stability at the driver level. However, it's worth keeping in mind that some antivirus programs or corporate security policies may block the creation of virtual adapters. Below, we'll cover each step in detail, from hardware testing to troubleshooting common connection issues.
⚠️ Important: Before starting any of these steps, make sure your computer has a working Wi-Fi module installed. Motherboard-integrated adapters often don't support access point emulation mode, so you may need an external USB dongle.
Checking virtual adapter mode support
The first and most critical step is diagnosing your wireless equipment. Not all network cards can operate in emulation mode, so running commands without first checking them can result in errors. To do this, launch the terminal with administrator rights and enter a specific driver query.
Open Windows search, type cmd, then right-click on "Command Prompt" and select "Run as administrator." In the window that appears, enter the command netsh wlan show drivers and press Enter. In the list of technical specifications that opens, find the line "Hosted network supported."
If this parameter is set to "Yes," your hardware is fully operational, and you can proceed to the next setup step. If the answer is "No," further steps are pointless without replacing the hardware or updating the drivers. Sometimes installing generic drivers from the chipset manufacturer helps, for example, Intel, Realtek or Qualcomm Atheros.
- 🔍 Check that your Wi-Fi adapter drivers are updated to the latest version from the manufacturer's website.
- 🛑 Make sure that the wireless module is physically enabled (hardware switch or Fn key).
- 📡 Make sure there are no hardware conflicts (yellow exclamation marks) in Device Manager.
Configuring network parameters and launching the access point
After successfully verifying the drivers, it's time to create the network itself. You'll need to specify a network name (SSID) and a password, which will be used to authorize client devices. The command to create the network is simple, but requires careful parameter entry, as case is important.
In the same command line window, enter the following: netsh wlan set hostednetwork mode=allow ssid="MyNetwork" key="Password123" keyUsage=persistent. Here MyNetwork - this is the name of your future network that will be seen by phones and tablets, and Password123 — security key. You can replace these values with any others, but the password must be at least 8 characters long.
Parameter keyUsage=persistent Saves your settings in the system's memory, so you won't have to re-enter them every time you restart your computer. If you want to change your username or password in the future, simply re-enter the command with the new information; the old entry will be automatically replaced with the new one.
netsh wlan set hostednetwork mode=allow ssid="Home_WiFi_PC" key="SecurePass2026" keyUsage=persistent
Now that the configuration is saved, you need to activate the virtual adapter. To do this, use the command netsh wlan start hostednetworkIf the operation is successful, the system will report that the hosted network has started and indicate the number of connected users (currently zero). At this point, your computer will begin broadcasting a Wi-Fi signal.
☑️ Network Launch Checklist
Organizing public access to the Internet
Launching the access point itself is only half the battle. At this stage, the computer only creates a local network but does not provide access to the global network (Internet). For connected devices to access websites, a connection must be forwarded from the main network adapter (Ethernet or USB modem) to the created virtual adapter.
Press the key combination Win + R, enter the command ncpa.cpl and press Enter. The "Network Connections" window will open, showing a list of all network interfaces. Find the adapter that connects your computer to the internet (usually called "Ethernet" or the name of your ISP), right-click it, and select "Properties."
In the window that opens, 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 networking connection" drop-down list, select the virtual adapter you created earlier (often labeled "Wireless Network" and numbered, for example, 2 or 3).
⚠️ Note: Once sharing is enabled, the IP address of the virtual adapter will automatically change to 192.168.137.1If you have manually changed the TCP/IP settings for this adapter, they will be reset.
It's important to note that if you're using a dynamic IP or specific DNS settings from your ISP, these may require additional manual configuration on client devices, although in 95% of cases, everything works automatically thanks to the built-in Windows DHCP server.
Network management and connection monitoring
Once the network is up and running and access is configured, it's useful to know how to manage the process and monitor activity. The command line provides tools for viewing the status, stopping seeding, and viewing a list of connected clients in real time.
To view the current status of the hosted network (number of clients, authorization type, channel), use the command netsh wlan show hostednetworkThe "Clients" section will display a list of MAC addresses of devices currently connected to your access point. This is a handy tool for identifying "neighbors" if you suspect your password has been compromised.
If you need to temporarily stop distributing Wi-Fi but not delete the network settings, use the command netsh wlan stop hostednetworkThis will completely disable signal broadcasting, but will save the SSID and key configuration for the next launch. To completely remove network settings (if you want to change the name and don't want to overwrite the old one), use the command netsh wlan set hostednetwork mode=disallow.
| Team | Description of action | Result of execution |
|---|---|---|
start hostednetwork |
Launching a virtual access point | Wi-Fi signal broadcasting begins |
stop hostednetwork |
Stop distribution | The network becomes unavailable to clients |
show hostednetwork |
View status and clients | Display a list of connected MAC addresses |
set hostednetwork mode=disallow |
Clearing network settings | Reset username and password, new setup required |
Hidden Monitoring Capabilities
The netsh wlan show hostednetwork command also displays the encryption type (usually WPA2-Personal) and the network's channel. This is useful if you have a lot of neighboring routers in your home and are experiencing interference. You can try changing the channel manually, although Windows 10 usually selects the least congested channel automatically.
Typical errors and methods for eliminating them
Despite the apparent simplicity, the process may encounter system limitations or driver conflicts. The most common error is "The hosted network couldn't be started." This is often due to the WLAN AutoConfig service being disabled or not working correctly.
To fix this, open services.mcl (Win+R) and find the "WLAN AutoConfig" service. Make sure its startup type is set to "Automatic" and that it is running. If the "Start" button is enabled, click it. The issue may also be related to the drivers: try uninstalling the device in Device Manager and updating the hardware configuration.
Another common issue is that connected devices don't have internet access, even though they have a Wi-Fi signal. This almost always indicates a sharing configuration error (see the "Sharing" tab in the adapter properties). Make sure the adapter that provides internet access is checked, not the virtual one.
- 🔄 Restart the WLAN AutoConfig service through the Services control panel.
- 🔌 Disable and enable the physical Wi-Fi adapter in Device Manager.
- 🛡️ Temporarily disable your antivirus or firewall to check if connections are blocked.
⚠️ Note: Network settings interfaces and service names may vary slightly depending on your Windows 10 build (Home, Pro, Enterprise) and update version. Always consult the latest Microsoft documentation if the default paths don't match.
Automating startup via a bat file
Constantly entering commands into the console can be tedious, especially if you use the access point regularly. The solution is to create a simple script that launches the network with a single click. This not only saves time but also reduces the likelihood of typos when entering parameters.
Create a text file on your desktop, rename its extension from .txt on .bat (For example, StartWiFi.bat). Right-click on it and select "Edit." Enter the following lines of code:
@echo offnetsh wlan start hostednetwork
pause
To stop the network, create a similar file StopWiFi.bat with contents netsh wlan stop hostednetworkNow, to start distribution, you simply need to run this file as administrator. This is especially convenient if you frequently travel between the office and home.
Questions and Answers (FAQ)
Is it possible to share Wi-Fi if the computer is connected to the Internet via the same Wi-Fi adapter?
Technically, this is possible, but highly discouraged and often hardware-independent. Most budget Wi-Fi adapters cannot simultaneously receive and transmit signals on different frequencies or channels. For stable operation, it's best to connect the internet via an Ethernet cable and distribute the data via the Wi-Fi module.
How many devices can connect to such an access point at the same time?
Windows 10 theoretically supports up to 100 simultaneous connections in hosted network mode. However, the actual number depends on the power of your Wi-Fi adapter and the processor load. For optimal performance, it's recommended to limit the number of active clients to 5-7.
Does this method work in Safe Mode?
No, most network services and drivers are not loaded in Safe Mode, so creating an access point will not work. The command may also not work if the Connection Manager or Network List service is disabled.
Why does the phone see the network, but says “Failed to connect”?
This is most often an issue with the encryption type or password length. Make sure the password contains more than 8 characters. Also, try changing the region in the Wi-Fi adapter driver settings (Device Manager -> Properties -> Advanced -> Country Region) to the United States or your country.