Create a WiFi Hotspot Using the Command Prompt
This article will show you how to create a WiFi hotspot using command prompt. Note that this process describes some of the commands that are available only in Windows 7 or Windows 8 Ready PC.
10 Second Summary
1. Press the "Windows key" and "R" to open "Run".
2. Type "cmd" then hit "Enter" or "OK".
3. Type "netsh wlan show drivers" and press "Enter".
4. Type "netsh wlan set hostednetwork mode=allow ssid=Hotspotname key=password" to create the hotspot.
5. Type "netsh wlan start hostednetwork" to start the hotspot.
Steps
- Run. Press the "Windows key" and "R" buttons at the same time. The Run window will pop up.
- Command Prompt. Type "cmd" in the box then hit "Enter" or OK. The Command Prompt will pop up, with Administrative Privileges.
- Device Check. Type
netsh wlan show drivers
in command prompt and press enter.
It will show the output like the image.
In the outputHosted network supported :Yes
means that your computer supports hosted networks. Verify this. - Create. Type
netsh wlan set hostednetwork mode=allow ssid=Hotspotname key=password
in Command prompt. This will create a Hotspot but it is currently offline. - Start. Type
netsh wlan start hostednetwork
in command prompt to start the hotspot you just created. - Stop. Type
netsh wlan stop hostednetwork
in command prompt to stop the hotspot. - Details. Type
netsh wlan show hostednetwork
to check the hotspot status. - Internet. To share your internet connection on this hotspot go to the Network and sharing center and click on Change adapter setting. Here right click on the Connection that you use to connect to internet and select properties.
In properties go to Sharing tab and check the box "Allow other network users to connect through this computer's internet connection and select the network connection name that is used by your hotspot.(For this check the Network Connection Window and look for Connection which says Microsoft Hosted Network Virtual Adapter). And save it.
Now your inter net connection is shared.
Tips
- Now as you guys are thinking this is so much typing. But you can do it another way. Open Notepad and type all the commands and save the file as ".bat" extension. Example. hots.bat
- You can write this commands in a .bat file and keep it on desktop for Quick access.
- And Run it as administrator and your hotspot is running.
Warnings
- Using Administrator privileges for CMD is must to run this commands. It will show error without it.
Sources and Citations
- Here is the link of Microsoft MSDN page that contains all other useful command on Wireless Hosted Network "http://msdn.microsoft.com/en-us/library/windows/desktop/dd815243(v=vs.85).aspx"