Pages

Sunday, January 15, 2012

Windows 7 PC as hotspot

Make Your Windows Seven Laptop /NoteBook as your Personal WiFi Hotspot

I was using this feature on my Ubuntu Note Book from long back ( The package name is hostapd ). I was just wondering if there is any option for my folks using Windows 7. And lol, I never knew that this was a built in feature in Windows 7 if your WLAN card supports hostmode. "Hostmode" is a mode of operation which is a preliminary requirement of your WiFi hardware to used as Wifi Router.

The rest of the method is really easy and fun.  Open a command prompt as administrator.


Then type :

 netsh wlan set hostednetwork mode=allow ssid=Your-HotSpot-Name  key=Your-Key  keyUsage=persistent

This will create a virtual WiFi hotspot with your name (Replace "Your-HotSpot-Name" and "Your-Key" with your choice). But wait you can not find the hotspot from your other devices now.
So before you search the hotspot, you have to start the service. To start start the hotspot type in the command prompt ( previously you opened as administrator ) as follows.

netsh wlan start hostednetwork

This will start the virtual WiFi hotspot you have created. Now  your other device can see the hotspot and connect to it.The I.P address will be obtained from built in DHCP server.

To share internet connection over the hotspot connection do the following. (This is one time setting only"

1. Go to Network and Sharing Centre.
2. Click on "change adapter setting ".
3. Right click on the adapter which is already connected to Internet.
4. Click on "Properties".
5. Click on "Sharing" Tab.
6. Click on "Allow other network users to connect through this computer's internet connection"
7. Select the Virtual WiFi network adapter .
8. Click Ok.




To stop your WiFi hotspot Type in the administrative command prompt as follows :

netsh wlan stop hostednetwork


Now all this things can be done by single click . You need to create two new shortcut as follows.

To Start Hotspot:

1. Right click on desktop. Chose "New---> Shortcut".
2. Type  C:\Windows\System32\cmd.exe /c "netsh wlan set hostednetwork mode=allow ssid=Your-HotSpot-Name   key=Your-Key    keyUsage=persistent && netsh wlan start hostednetwork && pause"  in location box.
3.  Give a name of the shortcut eg "Start Hotspot".
4. Finish & Save  it.
5. Right click on the newly created shortcut.
6. Click on the "Advance" under "Shortcut" Tab
7. Check the "Run this program as administrator"
8. Customize the icon as you want.











To Stop Hotspot:

1. Right click on desktop. Chose "New---> Shortcut".
2. Type  C:\Windows\System32\cmd.exe /c "netsh wlan stop hostednetwork && pause" in location box.
3.  Give a name of the shortcut eg "Stop Hotspot".
4. Finish & Save  it.
5. Right click on the newly created shortcut.
6. Click on the "Advance" under "Shortcut" Tab
7. Check the "Run this program as administrator"
8. Customize the icon as you want.


Now whenever you want to share your internet over the wifi network as hotspot you have to just double click on the "Start Hotspot" shortcut and to stop it double click on the "Stop Hotspot" shortcut.

Have Fun.