Home / Experiments / Setting up a Wi-Fi AP on your Computer

Setting up a Wi-Fi AP on your Computer

wifi-logoIf you’re like me, and you do a fair bit of playing around with Wi-Fi sensors, you may find that you don’t always want to connect your contraption directly to your home network.  There are two alternatives, setup a second wireless router, or, if you’re using Windows 7 or 8, you can use the built-in hostednetwork feature.  What’s hostednetwork, you ask?  It’s a way to basically “split” your Wi-Fi adapter in two; one part is connected to your home network, and the other part acts as a proper Access Point (AP).  There’s only one catch, your network card has to support it.

To set it up, I found a really excellent article here: [LINK].  It will also show you how you can check if your card supports it.  It is important to note, that you will need Administrator rights on the computer you’re trying this out on.

Now that I’ve done this, I can connect up to 100 devices to my “legolair” AP, how cool is that?  Btw, you won’t notice your newly created AP in the list of available Wi-Fi networks on your own computer but it should definitely appear on your mobile device or other Wi-Fi-enabled devices in the vicinity.  I have no idea what the range is but I’m sure it’s not as much as a proper wireless router.

If you issue the command netsh wlan show hostednetwork, you get some pretty cool info in your cmd box

2012-11-30_14-52-42

I haven’t figured out how to change the channel but you can make the key material persistent by using netsh wlan set hostednetwork mode=allow ssid=myssid key=password keyUsage=persistent. If you’re done with your network, you can take it down quite easily with netsh wlan stop hostednetwork.  I have not tested whether making the key material persistent, allows it to survive a reboot.  I leave that as an exercise for the reader!

About Xander

Xander Soldaat is a Software Engineer and former Infrastructure Architect. He loves building and programming robots. He recently had the opportunity to turn his robotics hobby into his profession and has started working for Robomatter, the makers of ROBOTC and Robot Virtual Words.