In today's digital world, having a laptop with wired internet but no way to connect a smartphone or tablet to the network is a common occurrence. Standard Windows operating system tools allow you to create a virtual access point without installing third-party software, using only built-in features and console commands. This solution is ideal for temporarily setting up a local network or when you need to quickly provide internet access to a guest device.
Using the command line gives the user complete control over the parameters of the network being created, including selecting the frequency range and encryption type. Unlike graphical interfaces, which can hide some settings, the console allows you to see the actual status of the adapters and manage them directly. This method is often helpful when the system's graphical interface crashes or doesn't display the necessary options for creating a hotspot.
Before you begin, make sure your laptop is equipped with a wireless module that supports "Hosted Network" mode. Most modern devices released in the last 10 years handle this feature without any problems. It's also important to remember that internet sharing is only possible if the laptop itself has an active network connection, whether via an Ethernet cable or a mobile 4G modem.
Checking compatibility and preparing drivers
The first step is to diagnose your wireless adapter to see if it supports network virtualization. Not all network cards, even those with Wi-Fi antennas, can operate in access point emulation mode. To check, launch the command prompt as administrator and enter the driver information request.
Type the following command and press Enter:
netsh wlan show drivers
In the list that appears, look for the line "Hosted network supported." If it says "Yes," your adapter is ready to use. If it says "No," you'll need to update the drivers from the manufacturer's website or replace the network module with a more modern one.
⚠️ Note: If your drivers have been updated but support still isn't available, try uninstalling the current device driver through Device Manager and scanning for the hardware again to ensure Windows installs a standard, compatible driver.
Problems often arise due to software version conflicts, especially on older laptop models. Make sure there are no exclamation marks next to your network adapters in Device Manager. The stable operation of the virtual access point directly depends on the correct version installed. drivers.
For advanced users, it's useful to know that some corporate security policies may block the creation of hotspots at the Group Policy level. In this case, even a functioning adapter will not allow the network to be launched without changing system settings.
Creating a virtual access point
After successfully checking compatibility, you can begin creating the network. This process requires entering a command with the network name (SSID) and password to connect. The network name will be displayed in the list of available connections on your mobile devices.
Use the following syntax to configure parameters:
netsh wlan set hostednetwork mode=allow ssid=MyNetwork key=MyPassword123
In this example MyNetwork - this is the name of your future network, and MyPassword123 — Password. The password must be at least 8 characters long. You can use any letters and numbers, but avoid special characters, as they may be misinterpreted by the console.
- 📡 SSID — network identifier visible to other users.
- 🔐 Key — a security key required for client authorization.
- ⚙️ Mode — an operating mode where "allow" allows the network to start.
If you want to use a stronger encryption standard or change other settings, you can do so during the setup process. However, the default WPA2-Personal settings provide sufficient security for home use.
⚠️ Warning: Avoid using passwords that are too simple, such as "12345678," as they are easily guessed by automated tools. For guest access, it's best to set a time limit or a complex key.
After entering the command, the system will confirm successful parameter changes. The network is now configured, but it is not yet active and not broadcast. To launch it, you will need to run a separate command, which will be discussed in the next section.
☑️ Pre-launch check
Network startup and status management
For the created configuration to work and the laptop to start broadcasting a signal, you need to enable the hosted network service. This starts broadcasting the SSID, making your access point discoverable.
To activate, enter the command:
netsh wlan start hostednetwork
If everything went well, you'll see a message indicating that the hosted network has started. From this point on, the name you specified earlier should appear in the list of Wi-Fi networks on your smartphone or tablet. Connecting to it won't provide internet access until traffic forwarding is configured.
To stop distribution, use a similar command with a different parameter:
netsh wlan stop hostednetwork
Managing network status allows you to save laptop battery power when access to other devices is not required. Stopping the network may also be necessary to change its settings or name without completely deleting the configuration.
What to do if the network does not start?
If an error occurs during startup, try briefly disabling your antivirus or firewall. Sometimes third-party programs block the creation of virtual adapters. Also, check to see if another access point is already running in Windows settings.
It's worth noting that the created network doesn't start automatically after restarting the computer. You'll have to manually enter the startup command each time or create a special script. This is a feature of the Windows service that requires explicit user confirmation.
Setting up Internet sharing
The most critical step is providing global network access to connected devices. Simply launching a hotspot isn't enough; it needs to be linked to your main internet connection (Ethernet or Wi-Fi). This is done through the network connections control panel.
Click Win + R, enter ncpa.cpl and press Enter. In the window that opens, find your primary adapter, the one your laptop uses for internet access. Right-click it, select "Properties," and then go to the "Access" tab.
Check the box "Allow other network users to connect through this computer's Internet connection." In the drop-down list below, select the virtual adapter created by the command (usually it's called "Local Area Connection" with a number or contains the word "Virtual").
| Parameter | Description | Default value |
|---|---|---|
| Gateway IP address | The laptop's address on the local network | 192.168.137.1 |
| Subnet mask | Determines the size of the network | 255.255.255.0 |
| DNS server | Address for name resolution | Automatically |
| Protocol | Connection type | TCP/IPv4 |
After applying the settings, the system may warn you about a change in the adapter's IP address—this is normal behavior. The laptop will assign itself a static address in the new subnet to correctly route client traffic.
It's important to understand that when switching between different networks (for example, switching from cable internet to Wi-Fi from a different router), sharing settings may become lost. In such cases, you'll need to repeat the process of checking the box in the sharing properties.
Automating the process via a bat file
Entering commands manually every day can be tedious, especially if you frequently travel between offices or work on business trips. The solution is to create a simple script that will perform all the necessary actions in a single run.
Create a text file, paste the necessary commands into it and save it with the extension .batBe sure to add a pause command at the end to see the execution result, or use a silent start for background work.
netsh wlan set hostednetwork mode=allow ssid=MyAutoNet key=SuperPass2026
netsh wlan start hostednetwork
You must run this file as an administrator, otherwise Windows will block changes to network settings. You can configure the file's shortcut properties so that it always requests elevated access rights upon startup.
For complete automation, experienced users can place a script shortcut in the startup folder or use Windows Task Scheduler to run it at logon. This will turn the laptop into a fully functional hotspot immediately after startup.
⚠️ Warning: Storing passwords in text files (.bat) is unsafe if unauthorized people have access to your computer. In such cases, it's best to use complex passwords or run a script with parameters.
Using scripts also allows you to quickly switch between different network profiles if you have multiple usage scenarios (e.g., "Home," "Office," and "Guests"). Simply create multiple batch files with different SSID parameters.
Diagnostics and troubleshooting
Despite the simplicity of this method, errors such as "Failed to start hosted network" or no internet connection on clients may occasionally occur. First, check the status of the Internet Connection Sharing (ICS) service.
Click Win + R, enter services.mscFind the "WLAN AutoConfig" service and make sure it's running. Also check the "Internet Connection Sharing (ICS)" service—it should be running and have the startup type set to "Automatic."
- 🔄 Reset network settings with the command
netsh wlan delete hostednetworkand create it again. - 🛡️ Check your firewall settings, it may be blocking incoming connections.
- 📡 Make sure that the wireless adapter driver is not disabled in Device Manager.
A common problem is an IP address conflict if there is already a device with the address 192.168.137.1 on the network. In this case, you will have to manually assign a different static IP address to the virtual adapter using the TCP/IPv4 protocol properties.
If the devices connect but the pages don't load, try manually entering the DNS servers on the client device (for example, 8.8.8.8 from Google). This often helps overcome issues with automatic settings retrieval.
Is it possible to share Wi-Fi if the laptop itself is connected via Wi-Fi?
Yes, this is possible if your wireless adapter supports dual-mode operation. However, in practice, this often results in slower speeds and an unstable connection. It's best to use an Ethernet cable for the incoming signal.
What is the maximum range of this access point?
The range depends entirely on the strength of your laptop's antennas. Typically, it's 10-15 meters indoors without major obstacles. A laptop isn't a dedicated router, so don't expect to cover an entire apartment.
Is it safe to leave such a network open?
This is strongly discouraged. Anyone within range can connect to your network and potentially intercept your traffic. Always use WPA2 encryption and a strong password, even for temporary sharing.
Why does the Internet disappear on connected devices?
Most often, this is due to the primary internet source (e.g., a modem) going into sleep mode or changing its IP address. The issue could also be caused by the DHCP lease expiring, which can be resolved by reconnecting the client.