From 98a810b55a394cd469676d33b4fe171f2f1b4a81 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 25 Nov 2012 11:44:52 +0200 Subject: [PATCH] Windows: add netsh tethering #16 --- articles/guides/Windows.html | 18 ++++++++++++++++ articles/guides/Windows.html.md | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/articles/guides/Windows.html b/articles/guides/Windows.html index 4a603f3..a41d9b0 100644 --- a/articles/guides/Windows.html +++ b/articles/guides/Windows.html @@ -32,6 +32,24 @@ Interesting things to do with Windows

If you cannot think any password for it, you can use same password as with your own account in emmergency like Linux Mint is doing. It uses the password of the user which was created in installation as root password. With Ubuntu root account is disabled by default and it can be enabled by running "sudo passwd root" and setting password.

You must set password for Administrator, because that account can do everything without User Access Control (UAC) prompts!

Remember also to not use the Administrator account for general use.

+

Tethering connection without 3rd party tools

+

This can be done with netsh, but the network doesn't have connection to internet at first.

+

First open cmd.exe as Administrator (activating administrator account). This requires normal user with administrator rights.

+

First allow tethering to be used and set SSID and password and start the network.

+
netsh wlan set hostednetwork mode=allow ssid=mynetwork key=mypassword
+netsh wlan start hostednetwork
+

NOTE: If you get error about missing svchost service or something else, press Windows + R and run "services" and enable "Wireless autoconfiguration" or something like that.

+

NOTE2: If you get other error, disable the network card in adapter settings and enable it again. Then run "netsh wlan start hostednetwork again".

+

NOTE3: If nothing helps, run "netsh wlan show drivers" and ensure that your network card supports hosted/virtual networks.

+

TODO: I must find out how to not have the network WPA2 secured. Leaving key=mypassword out doesn't seem to work.

+ + +

Getting internet access to the new network.

+

Right click the network icon on the taskbar and select "open network and sharing center". Then select "change adapter settings" in the window which opens and right click the connection which you want to share. Click properties and then "Sharing".

+

Share the connection using your new network which is something like "Wireless Local Area Connection 2" and uncheck "let others manage this connection", but remember to keep "let other users access the internet using this connection" checked. Then click "OK" or "apply" and your tethered network has internet access.

+

To see devices which are currently connected to the network, run

+
netsh wlan show hostednetwork
+

The hosted network gets disabled on reboot, but you can enable it again by running "netsh wlan start hostednetwork" (as administrator). You don't need to do anything else, it remembers the shared network connection.


diff --git a/articles/guides/Windows.html.md b/articles/guides/Windows.html.md index 6b5df99..8b3b270 100644 --- a/articles/guides/Windows.html.md +++ b/articles/guides/Windows.html.md @@ -61,6 +61,43 @@ If you cannot think any password for it, you can use same password as with your Remember also to not use the Administrator account for general use. +## Tethering connection without 3rd party tools + +This can be done with netsh, but the network doesn't have connection to internet at first. + +First open cmd.exe as Administrator (activating administrator account). This requires normal user with administrator rights. + +First allow tethering to be used and set SSID and password and start the network. + +``` +netsh wlan set hostednetwork mode=allow ssid=mynetwork key=mypassword +netsh wlan start hostednetwork +``` + +NOTE: If you get error about missing svchost service or something else, press Windows + R and run "services" and enable "Wireless autoconfiguration" or something like that. + +NOTE2: If you get other error, disable the network card in adapter settings and enable it again. Then run "netsh wlan start hostednetwork again". + +NOTE3: If nothing helps, run "netsh wlan show drivers" and ensure that your network card supports hosted/virtual networks. + +TODO: I must find out how to not have the network WPA2 secured. Leaving key=mypassword out doesn't seem to work. + + + +### Getting internet access to the new network. + +Right click the network icon on the taskbar and select "open network and sharing center". Then select "change adapter settings" in the window which opens and right click the connection which you want to share. Click properties and then "Sharing". + +Share the connection using your new network which is something like "Wireless Local Area Connection 2" and uncheck "let others manage this connection", but remember to keep "let other users access the internet using this connection" checked. Then click "OK" or "apply" and your tethered network has internet access. + +To see devices which are currently connected to the network, run + +``` +netsh wlan show hostednetwork +``` + +The hosted network gets disabled on reboot, but you can enable it again by running "netsh wlan start hostednetwork" (as administrator). You don't need to do anything else, it remembers the shared network connection. +