In Windows 7, wireless network interfaces are used to simulate WiFi, so that wireless devices such as mobile phones and computers can access the Internet.

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.