Outside, sometimes the network has a lot of inconvenience, need to use a laptop to create a WiFi hotspot for mobile phones; I test how XP is not configured to work, but Win7 has a viable solution, not relying on third-party software.
Details are as follows:
Note: The following command requires administrator privileges;
0. Verify that the local physical network is set up for sharing, and if set, cancel the share first
Physical network-right-properties-Share, Cancel "Allow other network users to connect through the computer's Internet"
1. Configure the virtual WiFi network card, enter the command (the account password is recommended lowercase, key not less than 8-bit) after the connection of "Wireless network Connection 2" usually appears
Netsh wlan set hostednetwork mode=allow ssid=xxxx key=xxxxxxxx
The hosted network mode is set to allow.
The SSID hosting the network has been successfully changed.
The user key password for the managed network has been successfully changed.
2. Configure a shared physical network to a virtual WiFi network card
Physical network-right-properties-share, set tick "Allow other network users to connect through the computer", share to Network Select "Wireless network Connection 2", "XX control or disable XX" can be canceled
3. Enable shared WiFi, then your phone will be able to search for the hotspot you created
Netsh wlan start hostednetwork
The hosting network has been started.
Other--Deactivate and delete operations:
A) If you want to stop sharing WiFi, enter the command:
Netsh wlan stop hostednetwork
The host network has been stopped.
b) If you also want to delete the "Wireless network Connection 2" connection in the "Control Panel \ Network and internet\ network Connection", enter the command:
Netsh wlan set hostednetwork mode=disallow
The hosted network mode is set to disabled.
See also: http://jingyan.baidu.com/article/92255446e95947851648f4f6.html
--
Attachment: (The following two scripts do not need to run with Administrator privileges)
Start WiFi sharing. bat
@echo is starting WiFi sharing ... @echo. @netsh WLAN Start Hostednetwork@pause
Stop WiFi sharing. bat
@echo stopping WiFi sharing ... @echo. @netsh WLAN Stop Hostednetwork@pause