Start virtual WiFi
1. Run Command Prompt as Administrator
2. Enable and set the "virtual WiFi network card" Mode
Run the following command to enable the virtual wireless network card (equivalent to enabling the router ):
Netsh WLAN set hostednetwork mode = allow SSID = "Win7-Router" Key = xxxxxxxxxx
This command has three parameters:
Mode: whether to enable the virtual Wi-Fi network card. If it is set to disallow, the virtual network card will disappear.
SSID: Specifies the name of the wireless network, preferably in English.
Key: the password of the wireless network. This password is used to encrypt wpa2 securely on the wireless network, which can prevent network attacks.
The preceding three parameters can be used independently. For example, you can disable a virtual Wi-Fi network card by using mode = disallow only.
3. Enable "Internet Connection Sharing (ICS )"
To share the connected Internet with other computers or devices, we need to enable the "Internet Connection Sharing" function. Open the network connection window, right-click a network connection that has been connected to the Internet, select Properties, switch to the share tab, and select the check boxes, and select the network connection that allows them to share the Internet here, that is, our virtual Wi-Fi network card
4. Enable Wireless Network
Continue to run the following command at the command prompt:
Netsh WLAN start hostednetwork
You can enable the previously set Wireless Network (equivalent to enabling the wireless function of the router. Similarly, change start to stop to disable the wireless network ).