Sertifikalı
Çoklu Erişim
Uluslararası Geçerlilik
Güvenli Alışveriş
Esnek Zamanlama
Blog
How to Set Up a Wi-Fi Hotspot on Windows Using Command Line
- 6 Ocak 2025
- Yayınlayan: Eğitim ACADEMY
- Kategori: Genel
If you need to share your computer’s internet connection with other devices, setting up a Wi-Fi hotspot on Windows via the command line is a quick and efficient way to do so. This guide will walk you through the process of setting up a Wi-Fi hotspot, starting it from the command line, and troubleshooting common issues.
Prerequisites
Before proceeding, ensure that the following conditions are met:
- Your Wi-Fi adapter supports hosted networks. You can verify this by running the command below:cmdCopy code
netsh wlan show driverIf the “Hosted network supported” line shows “no”, your adapter does not support this feature, and you may need a different Wi-Fi adapter that does. - You need administrator privileges to run the commands.
- Make sure your internet connection is working properly.
Step 1: Enable Hosted Network
First, we need to enable the hosted network feature on your computer. This will allow your computer to function as a Wi-Fi hotspot.
- Open Command Prompt as Administrator:
- Right-click on the Start menu and select Command Prompt (Admin).
- Run the following command to enable the hosted network:cmdCopy code
netsh wlan set hostednetwork mode=allow ssid=YourNetworkName key=YourPasswordReplace YourNetworkName with the name you want to give to your Wi-Fi hotspot (SSID) and YourPassword with a secure password for the network. - If successful, you’ll see a message confirming that the hosted network has been enabled, and the SSID and password have been set.
Step 2: Start the Hosted Network
To start broadcasting your Wi-Fi hotspot, run the following command in Command Prompt:
cmdCopy codenetsh wlan start hostednetwork
This will activate your Wi-Fi hotspot. You should now see your network listed in the available Wi-Fi networks on other devices.
Step 3: Share Your Internet Connection (Optional)
If you want to share your internet connection (for example, your Ethernet connection) with the devices connected to your hotspot, you need to enable Internet Connection Sharing (ICS):
- Open Network Connections by typing
ncpa.cplin the Run dialog (press Win + R). - Right-click your active internet connection (Ethernet or Wi-Fi) and select Properties.
- Go to the Sharing tab.
- Check the box that says “Allow other network users to connect through this computer’s Internet connection”.
- From the dropdown menu, select the Wi-Fi hotspot connection that you created.
- Click OK to apply the settings.
Devices connected to your Wi-Fi hotspot should now have access to the internet.
Step 4: Stop the Hosted Network
When you’re done sharing your internet connection, you can stop the hosted network by running the following command:
cmdCopy codenetsh wlan stop hostednetwork
This will deactivate the Wi-Fi hotspot.
Troubleshooting Common Issues
Here are some common issues you might face while setting up the hosted network, and how to resolve them:
- “The hosted network couldn’t be started”:
- Ensure that your wireless adapter supports hosted networks (check using
netsh wlan show driver). If it doesn’t, you will need a compatible adapter.
- Ensure that your wireless adapter supports hosted networks (check using
- “Hosted network not supported”:
- This means your adapter doesn’t support the hosted network feature. Consider updating your Wi-Fi drivers or switching to a different adapter.
- “Network sharing issues”:
- Make sure that Internet Connection Sharing (ICS) is configured correctly (as described in Step 3). Double-check that the correct network is selected.
- Slow performance:
- If you’re experiencing slow speeds, this could be due to your computer’s hardware or the number of devices connected to the hotspot. Try using a different Wi-Fi adapter for better performance.

