How to create a WIFI Hotspot using CMD

Patrick Gichini
Decode_ke
Published in
3 min readJun 16, 2017

WIFI has become a very valuable consumable in today’s world. A wise old man (I think it was Davies :lol:) once said, there is nothing a man loves more that free WIFI, free food and free cable TV, Amen! Many a times, we find ourselves with extra Internet bundles and offer to share it with our needy friends (My parasites, am not naming names but you know yourselves. See your life :lol:)

You normally share your Internet by creating a hotspot with your mobile phone. A hotspot is a physical location where people may locate Internet. Mobile hotspots are like Kim Kardashian’s bum, everyone has seen them in action. But did you know you can do that with your laptop? If the wifi has weird proxies and you phones had a hard time connecting, you can actually create a hotspot with your laptop. During my freshman days, we used to do this by downloading a software connectify. Nowadays, I just use cmd.

so how do you conjure the magic? This is how you go about it:

Start by pressing W + X and selecting Command prompt(Admin).

Type netsh wlan show drivers. This command checks if your machine has the necessary drivers/NIC card to support this action.

If the output is yes like the one above, then you’re clear to continue. If the output is no, too bad mate.

Now we move on to create the hosted network.

Type netsh wlan set hostednetwork mode=allow ssid=hotspotname key=yourpassword Remember to substitute ‘hotspotname’ with your desired name and ‘yourpassword’ with the password you want to set.

The hotspot is now createedbut we have to bring it online. You can do this by typing netsh wlan start hostednetwork

Now that your hotspot is online, you need to share your Internet connection with your clients. To do this, go to Networks and sharing center and click on Change adapter setting. Right click on your Internet connection 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 Ad

While 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 name that you used for your hotspot. Check the Network Connection Window and look for Connection which says Microsoft Hosted Network Virtual Ad.

If at any time you’re unsure of your hotspot’s status you can do a quick check by typing netsh wlanshow hostednetwork. To stop your hotspot, type netsh wlan stop hostednetwork.

Now you’re ready to the hotspot master.

--

--

Patrick Gichini
Decode_ke

Linux Ninja | Data Enthusiast | Sentimental Poet | Agent Boyfriend