Thursday, December 31, 2015

Use 'netsh wlan start hostednetwork' Create WiFi Hotspots On PC

netsh wlan start hosted network for wifi hotspot
Create WiFi Network With CMD

First a little intro into this feature, its called Wireless Hosted Network and it uses this simple command "netsh wlan start hostednetwork" to create a hotspot from any supported laptop or computer.
Okay, so what is a wireless Hosted Network?
It started off named VirtualWiFi project which was later stopped before the full feature was implemented into Windows, Microsoft has left some of the hidden functions in Windows 7 and Windows server 2008 R2. Microsoft changed the name Wireless Hosted Network for this feature.

The simple code to start the hotspot in cmd is: netsh wlan start hostednetwork.
This Wireless Hosted Network feature uses the VirtualWiFi technology along with a software-based access point (AP) feature. Thus, it lets anyone with a supported Wi-Fi adapter and driver to become a wireless AP for other Wi-Fi users, while also having the ability to connect to another wireless network. It also includes a DHCP server, so users automatically receive an IP address.

A use of this technology could be used in hotels to to share the paid WiFi connection with other users for free. But in a more real sense, this technology could be used to repeat a wireless network, which is essentially boosting a wireless signal.

Others would possibly advise that you can use this digital AP as a wi-fi hotspot. simply do not forget, even though the wi-fi Hosted community is encrypted, giving out the important thing comprises the security. humans with the important thing can eavesdrop on the alternative users which can be related. Plus the users might provide the key to others.
give up-users can engage with the wireless Hosted network through the netsh command-line device. software builders can also write the front-end utilities, like Connectify, or use the abilities in different 1/3-birthday party programs. In this post I will be showing you how to set one up and troubleshoot and problems. Okay lets get started.

Checking Compatability

Before we do anything we have to check for compatibility, to see if we can actually host a wifi hotspot or not.
To do that Open up CMD and type the following command.
netsh wlan show drivers
You should see all this random text appear on the prompt
Look for "Hosted network support"
If it says yes please go to the next section, if it says no then I'm sorry your WiFi adapter doesn't support it. You can either buy an external WiFi adapter for $20 from ebay and you will be able to create a hotspot.

How to Create A Wireless Hosted Network With CMD
Using This Command "netsh wlan start hostednetwork"

Okay moving on, we have to set our network as sharing
To do that press "Windows Button + R"
Type "ncpa.cpl" and press enter.

Right click on the connected WiFi and go to properties

Now to the "Sharings"
Check the box next to "Allow other network users to connect through this computer's Internet connection"
and press "Okay"

Okay now that done, we have to start up CMD
Right click on your start button and click on "Command Prompt (Admin)"
Make sure you start it up as admin.

Now we have to type in this command to set up a network SSID and password for the network.
netsh wlan set hostednetwork mode=allow ssid=”[Type your own network name]” key=”Pa$$w0rd”

Next type in this command to start up the network.
netsh wlan start hostednetwork

netsh wlan start hostednetwork

If your at this step, by now you wifi hotspot should be started, if it hasn't then try running the stop command "netsh wlan stop hostednetwork" and starting over again from the beginning. and if that doesn't wok you will have to scroll down to the trouble shooting section.
So for the last command which will us details about our hotspot like, how many users are connected, the channel its using to broadcast and more. here is the command.
netsh wlan show hostednetwork

Create A WiFi Hotspot
Using a software
If you read the command line technique above and wanted something easier and simpler? we’ll show you a nice GUI application with loads of options and a pretty interface that will do the exact same job faster and easier. The program is by a company named Connectify they have a great application called Hotspot that lets you easily create a Wi-Fi hotspot from your internet connection.

Connectify Hotspot is tremendous in case you’re at a motel that costs in line with device, or in case you’re on a plane and also you connect your pc however don’t want to pay more to attach your cellphone.

It’s honestly greater of a power person device, however if you’re seeking out an excellent answer, Hotspot is unfastened to attempt out, and the basic model is loose with some limitations. if you pay for the premium version you could even use your laptop as a wi-fi repeater or a wired router, or percentage a tethered connection off your phone. But if you want to do the command line option go read the top of this post, you can simply use this command "netsh wlan start hostednetwork" on cmd to get a wifi hotspot going.

wifi hotspot with connectify
Connectify Preview

  • It’s a virtual AP
  • Easiest command: netsh wlan start hostednetwork.
  • others nearby should see the Hosted Network appear in their list of available wireless networks. They can connect like normal and enter the encryption key when prompted. 
  • you’ll have to manually start the Hosted Network again, if desired, after rebooting the computer. 
  • Most importantly, remember sharing isn’t blocked; make sure you only invite people you trust. 
  • To change the WPA2-PSK key, you can enter the following: "netsh wlan refresh hostednetwork YourNewNetworkPassword
  • To manually turn the Hosted Network off, enter the following: "netsh wlan stop hostednetwork"

Cant connect to the network but you can detect the WiFi SSID?
For android users :
Try setting the password exactly 8 characters long.
Set a static IP on the Android (under Advanced Options under where you type the Wifi password)

Problems You Maybe Run Into
Wifi not Active : This case will generate error like “Device attached to system….”.This is the easiest error.
Enable the Virtual Adapter and try again.

I hope this post was helpful and you guys learnt something. If you liked this then please don't forget to share it and help us out. And dont forget use this code to get this done : netsh wlan start hostednetwork.
Thanks : ]