Use Windows7 to share WIFI online

  
How to share WIFI Internet? In fact, there are many software online for this function, such as Lenovo's IGRS, Intel's MY WIFI, etc., but usually this kind of software has many limitations on hardware, it is not very convenient to use, win7 As a successful system model of Microsoft, it is very common nowadays. It is very powerful. There are many unexpected internal things in the WIN7 system. For example, it is convenient to set the wireless network card routing settings of WIN7 to realize shared WIFI Internet access. The setup process:
1. Run the command prompt as an administrator
Because the following steps must be run under administrator privileges, we can find the “command prompt" from the start menu, or type cmd directly Quick search, right click on it, select “run as administrator", click “ is ” in the pop-up user control window. Another way is to hold down the Ctrl and Shift keys and click the shortcut directly, which is much simpler.
2. Enable and set the "Virtual Wifi NIC" mode
Run the following command to enable the virtual wireless network card: netsh wlan set hostednetwork mode=allow ssid=(write the wireless network name here) key=(here is the password The following picture

After the execution, we will see a "virtual network card" in the network adapter "Wireless Network Connection 2" Mode: whether to enable the virtual Wifi NIC, disallow is disabled, virtual The network card will disappear.
Ssid: Specify the name of the wireless network, preferably in English.
Key: Specify the password for the wireless network. This password is used for secure WPA2 encryption of the wireless network, which can prevent the network from being blocked.
The above three parameters can be used separately. For example, only use mode=disallow to disable virtual Wifi card directly.
3. Enable “Internet Connection Sharing (ICS)”

For other computers Or the device shares the connected Internet, we need to enable the "Internet Connection Sharing" function. Open the “Network Connections” window, right-click on the network connection that is connected to the Internet, select “Properties”, switch to the “Share” tab, select the checkbox in it, and select Allow it to share the Internet. The network connection is here our virtual Wifi card.

After the confirmation, the shared network card icon will appear next to the "Shared" flag, indicating "Internet connection sharing" to the virtual wireless network card
4. Open the wireless network
Continue to run the following command at the command prompt: netsh wlan start hostednetwork, you can open the wireless network we set up before (equivalent to open the wireless function of the router. Similarly, turn start to stop to close the wireless network).

It can be seen that the virtual wireless network card has already opened the wireless network we have designated, and its IP address and other attributes are allocated by the “Internet Connection Sharing” service, so it is quite special.

It is not far from success, you can pick up your mobile phone, search with WIFI function, you will see a wireless network connection! But still can not access the Internet, still a little. We changed 137 to 2 network segments (the network segment here can be changed if it is not the same network segment as the network card shared with you) I set it to IP: 192.168.2.1 Subnet mask: 255.255.255.0
The first step: computer settings (directly above)

Open the network card properties Double-click the wireless network card and then configure the IPv4 properties. According to my above configuration, the ip address should be configured to be on the same network segment as the virtual network card. Can not be 192.168.2.1 can only be 192.168.2.X Subnet mask default is 255.255.255.0 The default gateway is set to virtual network card IP address!!! The preferred DNS is also the virtual network card IP address, after the configuration is complete, the link wireless network can access the Internet The second step: mobile phone settings
Generally speaking, the specific location to find their own, is to set the mobile phone wireless network IP address settings, as well as subnet mask, gateway and DNSIP address settings The method is 192.168.2.X but X can't use the same with other wireless devices! The subnet mask is still 255.255.255.0 The gateway is 192.168.2.1 The preferred alternate DNS is 192.168.2.1!! After configuration, it will be fine. Wireless device connected to this After the network is ready, you can share the Internet!
Friendly Tips:
When our computer restarts, the wireless network will be automatically turned off. When you turn on the computer again, you need to re-open the wireless network. Is it very troublesome? Don't be afraid~~ We create a new text document input "netsh wlan start hostednetwork”, then save it as BAT format, rename it to wifi, put it on the desktop and it will be OK! Of course, if you want him to boot, it is also simple, put this file Copy it to the startup folder in the Start menu!

Copyright © Windows knowledge All Rights Reserved