In Windows 10, you can create a virtual Wi-Fi hotspot on your computer to share your Internet connection with other devices. In this article, we’ll take a look at how to enable and configure Wi-Fi hotspot in Windows 10.
Let’s say you have a Windows 10 computer with two network interfaces:
- Wi-Fi adapter;
- Wired Ethernet connection to your ISP (or Internet connection through a cellular provider).
First, you need to check if the driver of your Wi-Fi adapter supports the mode of operation as an access point (Ad-Hoc):
- Make sure your Wi-Fi adapter is turned on. Check it in the BIOS, or enable it with a special hardware button on a laptop (or with the Fn+Fx key combination, most often it is Fn+F3);
- Open a command prompt as an administrator and run the command: netsh wlan show drivers;
- Make sure that the Hosted network supported: Yes line is present in the Wi-Fi driver configuration listing. If No is indicated here, try updating your Wi-Fi adapter driver to the latest version, or use a different Wi-Fi adapter.
In order for the Wi-Fi hotspot to work in Windows 10, the following system services must be enabled:
- WLAN AutoConfig (WlanSvc);
- Routing and Remote Access (RemoteAccess);
- Internet Connection Sharing (ICS) (SharedAccess).
You can check the status of these services using the services.msc console or the following PowerShell command:
Get-Service WlanSvc, RemoteAccess, SharedAccess
Start these services if needed and configure them to startup automatically.
You are now ready to enable Wi-Fi Ad Hoc on Windows 10. Go to a Command Prompt window and run the command:
netsh wlan set hostednetwork mode=allow ssid="theitbros" key="1Sesret1" keyUsage=persistent
In this command, you specified:
- Ad hoc network name (SSID) – theitbros;
- Password (key) to connect to the hotspot – 1Sesret1.
If you did everything correctly, the command will return the following lines:
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
Now you can start the created ad hoc network:
netsh wlan start hostednetwork
So, now Wi-Fi network on your Windows 10 device can be discovered by other devices. Wireless clients can connect to your hotspot, but without Internet access.
Now you need to allow the clients of your access point to access the Internet:
- Go to the Control Panel > Network and Internet > Network and Sharing Center > Change network adapter settings (or run the ncpa.cpl command);
- Open the properties of your Internet network connection (in our example it is Ethernet 3);
- Go to the Sharing tab;
- Enable the option Allow other network users to connect through this computer’s Internet Connection;
- In the Home networking connection drop-down list, select the name of your hotspot (theitbros);
- Save changes by clicking OK;
- Restart your hotspot with commands:
netsh wlan stop hostednetwork netsh wlan start hostednetwork
Now all connected clients of your Wi-Fi hotspot will be able to access the Internet through your Windows 10 device.
You can display all the settings for your Wi-Fi hotspot with the command:
Netsh wlan show hostednetwork
The next command will display your Wi-Fi hotspot security settings and connection key:
Netsh wlan show hostednetwork setting=security
To remove the Windows hotspot, run the command:
netsh wlan set hostednetwork mode=disallow