How to Create a Wi-Fi Hotspot on Windows 7: Command Prompt

In situations where wired Internet is only available on a desktop computer, and a wireless connection is required for a smartphone or tablet, the operating system Windows 7 allows you to easily solve this problem. You won't need to buy additional equipment or complex routers, as the built-in OS tools allow you to turn your PC into a fully-fledged virtual routerThis is especially true for older laptops or desktops, where drivers may be unstable and the graphical interface may not always display all available functions.

Usage command line Gives the user direct control over network adapters, bypassing potential graphical interface bugs. Creating a network through the console is considered the most reliable and universal way to establish a local connection. Unlike third-party programs, system commands don't put unnecessary load on the processor and guarantee compatibility with any network cards that support the technology. Wi-Fi Direct.

Before you begin setting up, make sure you have a working version installed on your device. driver for the wireless module. Without a properly functioning driver, no commands will have any effect, and the adapter simply won't be able to switch to sharing mode. In this article, we'll cover every step in detail, from checking the hardware to connecting mobile devices.

Checking if your network adapter supports host mode

The first critical step is to verify that your network equipment is capable of operating in virtual access point mode. Not all Wi-Fi modules, especially those released more than ten years ago, support the hosted network feature, which is necessary for router emulation. To check, launch the console with administrator rights and enter a special diagnostic command.

Press the key combination Win + R, enter cmd and press Enter, after making sure that your account has permissions administratorIn the black window that opens, enter the command netsh wlan show drivers and carefully examine the system output. You're interested in the line "Hosted network supported."

If this line shows "Yes," then your hardware is fully operational and you can proceed to the next section of the instructions. If the value shows "No," you will need to update drivers wireless card to the latest version from the manufacturer's website or replace the network adapter with a more modern one.

⚠️ Note: If support still isn't available after updating your drivers, your network adapter may not physically support SoftAP mode. In this case, creating an access point using software is impossible without replacing the hardware.
📊 Does your adapter support hosted networking?
Yes, it worked right away.
I had to update the drivers
No, the adapter is old.
I don't know, I'll check.

Preparing to launch a virtual router

Successful wireless network setup depends not only on entering commands correctly, but also on preparing the system beforehand. Before starting any operations, you must ensure that the service is running. WLAN AutoConfig It must be active and running, as it manages wireless connections in Windows. Disabling this service will prevent the network from appearing on the air, even with the correct settings.

It is also worth determining the parameters of the future network in advance: come up with SSID (network name) and a complex password. Encryption is recommended. WPA2-PSK, as it provides a sufficient level of data protection during over-the-air transmission. The password must contain at least 8 characters, including letters and numbers, to prevent unauthorized access.

☑️ Preparing the system

Completed: 0 / 4

Make sure the computer that will be sharing the internet already has a wired or wireless connection to the global network and is stable. A virtual router only broadcasts an existing connection; it doesn't create one out of thin air. If the PC doesn't have internet access, the connected devices won't have it either.

Step-by-step configuration via the command line

The process of creating an access point is based on the utility netsh, which is a powerful network management tool in Windows. First, you need to create and save a network profile. Enter the following command, replacing MyNetwork to the desired network name, and MyPassword to your password:

netsh wlan set hostednetwork mode=allow ssid=MyNetwork key=MyPassword keyUsage=persistent

After the command has successfully completed, the system will report that the hosted network parameters have been changed. Now you need to launch the created network. To do this, enter the command netsh wlan start hostednetworkIf everything went well, you'll see the message "Hosted network started." At this point, the wireless device begins broadcasting a signal.

To restart, you won't have to re-enter the settings; simply run the start command: netsh wlan start hostednetworkThis makes the method convenient for regular use.

Setting up Internet access sharing (NAT)

Launching a network is only half the battle. To ensure connected devices can access the global network, traffic forwarding must be configured, or NAT (Network Address Translation). Without this step, devices will see the network and be able to connect to it, but the browser will display the error "No internet access."

Open the Network Connections window. This can be done through the Control Panel or by entering the command ncpa.cpl in the Run window (Win + R). Find your primary connection through which your computer receives internet (for example, "Ethernet" or "Broadband Connection"), right-click on it and select "Properties."

In the window that opens, go to the "Sharing" tab. Here, 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, usually called "Wireless Network Connection" and followed by a number (e.g., Wireless Network Connection 3).

Action Where to look What to choose
Open properties Main adapter (Ethernet/3G) Access tab
Allow access Checkbox "Allow..." Check the box
Select network List of connections Wireless connection X
⚠️ Note: Network connection interfaces may change names after a reboot or driver update. Always check which virtual adapter you selected in the sharing settings if your internet connection stops working.

Management and monitoring of the created network

Once the network is running and access is configured, you may need to manage it: view connected clients, change settings, or shut it down completely. The command line provides all the necessary administration tools. For example, to view detailed information about a running network, including the number of connected users, use the command:

netsh wlan show hostednetwork

In the output of this command, you'll find a "Clients" section, which displays the number of active connections and the MAC addresses of the devices. This is useful for monitoring: if you see an unknown device, your password may have been compromised and should be changed. To change the password or network name, simply re-run the settings command from the previous section.

To forcefully stop Wi-Fi distribution, use the command netsh wlan stop hostednetworkThis is a useful feature if you need to temporarily suspend access for all devices without disconnecting the physical Wi-Fi module or unplugging the router. Once suspended, the network will disappear from the list of available devices on phones and laptops.

How can I view the password for a created network?

If you have forgotten the password you set, you can view it in the properties of the wireless adapter in Windows, but it is easier to re-enter the set hostednetwork command with the new password, since the key is stored in the profile configuration.

Common mistakes and how to solve them

Despite the simplicity of this method, users often encounter specific errors when launching. One of the most common is "Failed to start hosted network." This is often due to the WLAN AutoConfig service being disabled or the driver not supporting the mode. In this case, check Device Manager and ensure there are no yellow exclamation marks on the adapter.

Another common issue is that devices connect, but the internet doesn't work ("No internet access"). This almost always indicates a setup error. public access (NAT). Check to see if the settings have been reset after a reboot, and ensure that the virtual network you just created is selected in the primary adapter properties.

It's also worth mentioning the frequency band issue. Some older adapters only work in the 2.4 GHz band, while newer devices may try to search for a network in the 5 GHz band. If your phone isn't seeing the network, try updating your drivers or checking your region settings in Device Manager, although Windows 7 has limited options for manually switching bands via netsh.

Why does the netsh wlan start hostednetwork command return an error?

This error may occur because the network wasn't previously configured with the set hostednetwork command, or the adapter driver is frozen. Try running the stop command first, then setting the parameters, and only then starting it. Restarting the WLAN AutoConfig service also helps.

How many devices can be connected simultaneously?

The theoretical limit for Windows 7 is up to 100 connections, but the actual number depends on the power of your Wi-Fi module and processor. For stable operation, it is recommended to connect no more than 5-7 devices simultaneously.

Will this method work if the computer is connected to Wi-Fi?

As a rule, a single Wi-Fi adapter cannot simultaneously receive and transmit a signal. If your PC is connected to the internet via Wi-Fi, you won't be able to create a hotspot using the same adapter. The internet connection must be provided via a cable (Ethernet) or a 3G/4G modem.

Do I need to configure a firewall?

In most cases, Windows automatically adds the necessary exceptions when you enable sharing. However, if websites aren't opening, try temporarily disabling your third-party antivirus or firewall to test.