Windows Laptop as WLAN Access Point
Configure a Windows 7 Laptop to act as a WLAN Access Point for a tablet or smartphone to enable access to the internet.
The desire to do such a setup arose when I came to a hotel, where access to the internet was only possible with a CAT5 cable connected to my laptop. I was stunned - no WLAN access, but network sockets in every room - and they had patch cables handed over to guests who needed internet access!
So the goal of this setup is to give the WLAN-only tablet access to the internet via the laptop. MS Windows 7 has everything on board we need.
Open a terminal window as administrator:
:: setup the WLAN netsh wlan set hostednetwork mode=allow ssid=yourSSID key=networkPASSWORT keyUsage=persistent :: activate the WLAN netsh wlan start hostednetwork
The next step is to go to the Network and Sharing Center. Share (right click) the network connection you want to use via WLAN (the one with the internet connection) and bring up the Network Connections window. Choose the Share-tab, tick the uppermost option, and choose the previously created WLAN (probably Wireless Network Connection 2) you want to connect to.
To show the details of the new WLAN network enter:
netsh wlan show hostednetwork
Now you can connect to the WLAN with your clients.
Once you're done with your WLAN-AP stop and disable it:
:: to stop it: netsh wlan stop hostednetwork :: disable netsh wlan set hostednetwork mode=disallow
Remember: the hostednetwork has to be started manually after a reboot.
And as you're exposing the laptop to the clients without much security applied the WLAN should be shared wisely.