How to share WIFI on Windows 7

  
How to share WIFI Internet access? In fact, there are many software online for this function, such as Lenovo's IGRS, 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 of Microsoft Model, now used is very common, mainly the function is very powerful, there are many unexpected internal things in the WIN7 system, for example, convenient to set up WIN7 wireless network card routing settings, to achieve shared WIFI Internet access, the following share the process: Br> 1. Run the command prompt as an administrator
Since the following steps must be run under administrator privileges, we can find the “Command Prompt” from the Start menu, or type cmd to search quickly, right click 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 mode=disallow can be used to directly disable the virtual Wifi NIC.
3. Enable <;Internet Connection Sharing (ICS)"

In order to share the connected Internet with other computers or devices, 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, a shared NIC icon will appear next to the “Shared” flag, indicating that "Internet Connection Sharing" is opened to the virtual wireless network card.

4. Turn on the wireless network
Continue to run the following command at the command prompt: netsh wlan start hostednetwork, you can open the wireless network that we set up before (equivalent to open the wireless function of the router. Similarly) , change 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 the same network as the virtual network card. The segment can be 192.168.2.1 can only be 192.168.2.X The subnet mask defaults to 255.255.255.0 The default gateway is set to the virtual NIC IP address! The preferred DNS is also the virtual NIC IP address. After the configuration is complete, link the wireless network. Can go online!
Second Step: Mobile Phone Settings
Generally speaking, the specific setting location is to find the IP address of the mobile phone wireless network, as well as the subnet mask, gateway and DNSIP. The address setting method is 192.168.2.X but X cannot be used the same as 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 do. Wireless device connection After sharing this virtual network, you can share the Internet!

Copyright © Windows knowledge All Rights Reserved