How to Create a WiFi Hotspot in Windows 8 using Command-prompt?

WiFi (Wireless Fidelity) hotspot is a network with an area where wireless access to the internet is available. These are Internet access points that allow you to connect to a WiFi network using your computer, smartphone, or another device while away from your home or office network.

There are lots of software that can create a WiFi hotspot. But using cmd, you don’t have to install any software. Here is a way for that. 

Follow these steps to create your own WiFi hotspot:

Step 1: Open command prompt by typing cmd in search. Right-click in it and select Run As Administrator.

Step 2: Now, we have to set our WiFi Name and Password. For this, enter the following command in the cmd and press Enter:

netsh wlan set hostednetwork mode=allow ssid=wifiName key=wifiPassword

Here you can give any name of your choice in place of wifiName and any password of your choice in place of wifiPassword.

Note that your password should be 8 characters long.
Step 3: To start the WiFi Hotspot, enter the following command:

netsh wlan start hostednetwork

Step 4: The WiFi must now be visible to near by devices.

Step 5: To stop the WiFi network, enter the following command:

netsh wlan stop hostednetwork

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.