Start the wireless network:
@ Echo off
ECHO is starting wireless network. Please wait ......
: Enable virtual AP. BAT (enable the virtual AP function, and set the name and password to at least 8 characters)
Netsh WLAN set hostednetwork mode = allow SSID = qq471226865 key = 471226865
: Enable virtual AP. BAT (after enabling, others can search for you)
Netsh WLAN start hostednetwork
ECHO started the wireless network. Do not forget to modify the IP address of the newly started wireless network and the IP address of the client wireless network!
Echo. & pause
Closed wireless network:
@ Echo off
ECHO is disabling wireless network. Please wait ......
: Disable virtual AP. BAT (disable the virtual AP function)
Netsh WLAN set hostednetwork mode = disallow SSID = qq471226865 key = 471226865
: Disable virtual AP. BAT (you can disable it when not in use)
Netsh WLAN stop hostednetwork
Echo wireless network disabled!
Echo. & pause
Note:
The Microsoft Visual WiFi miniport adapter wireless network adapter IP address on the server must be changed to: IP Address: 192.168.0.1 subnet mask: 255.255.255.0
The IP address of the client is similar to: IP Address: 192.168.0.2 subnet mask: 255.255.255.0 Default Gateway: 192.168.0.1 first DNS: 192.168.0.1