How to share WiFi in Windows 7

Source: Internet
Author: User

How to share WiFi in Windows 7

Reference: http://www.3lian.com/edu/2012/03-08/22645.html

How can I share Wi-Fi access? In fact, there are a lot of software on the Internet for this feature, such as Lenovo's flash link anyway, Intel's my WiFi, etc. However, this type of software usually has many hardware restrictions and is not very convenient to use, windows 7, as a successful system model of Microsoft, is now widely used, mainly because of its powerful functions. There are many unexpected internal things in Windows 7. For example, to facilitate the configuration of wireless network card routing for win7 and achieve Internet access through shared WiFi, we will share the setting process below:

1. Run Command Prompt as Administrator

Because the following steps must be run under the Administrator permission, we can find the "command prompt" from the Start menu, or directly Type CMD to quickly search, right-click it, select "Run as administrator" and click "yes" in the pop-up user control window ". Another way is to press Ctrl and shift to directly click the shortcut, Which is simpler.

2. Enable and set the "virtual Wi-Fi network card" Mode

Run the following command to enable the virtual wireless network adapter: netsh WLAN set hostednetwork mode = allow SSID = (enter the wireless network name here) Key = (here is the password)

After the execution, we will see a "wireless network connection 2" virtual network card in the Network Adapter

Mode: whether to enable the virtual Wi-Fi network card. If it is set to disallow, the virtual network card will disappear.

SSID: Specifies the name of the wireless network, preferably in English.

Key: the password of the wireless network. This password is used to encrypt wpa2 securely on the wireless network, which can prevent network attacks.

The preceding three parameters can be used independently. For example, you can disable a virtual Wi-Fi network card by using mode = disallow only.

3. Enable "Internet Connection Sharing (ICS )"

To share the connected Internet with other computers or devices, we need to enable the "Internet Connection Sharing" function. Open the "Network Connection" window, right-click the network connection that has been connected to the Internet, select "properties", switch to the "share" tab, and select the check boxes, and select the network connection that allows them to share the Internet here, that is, our virtual Wi-Fi network card.

After confirmation, the "shared" icon appears next to the shared Nic icon, indicating that "Internet Connection Sharing" has been activated for the virtual wireless Nic.

4. Enable Wireless Network

Run the following command in the command prompt: netsh WLAN start hostednetwork to enable the previously set Wireless Network (equivalent to enabling the wireless function of the router. Similarly, change start to stop to disable the wireless network ).

We can see that the virtual wireless network card has enabled the specified wireless network, its IP address and other attributes are allocated by the "Internet Connection Sharing" service, so it is quite special.

It's not far from success. You can pick up your mobile phone and search for the Wi-Fi function. Then you will see a wireless network connection! But I still cannot access the Internet. We changed 137 to 2 CIDR blocks (the CIDR block here can be changed randomly if it is not the same CIDR block as your shared Nic). I set it to IP: 192.168.2.1 subnet mask: 255.255.255.0

Step 1: computer-side settings (direct)

Enable Nic properties -- double-click the wireless Nic and configure the IPv4 attribute according to the above configuration. The IP address must be configured in the same network segment as the virtual Nic, it cannot be 192.168.2.1 but only 192.168.2.x. The default subnet mask is 255.255.255.0. The default gateway is set as the virtual Nic IP address! The preferred DNS is also the IP address of the virtual network card. After configuring the IP address, you can connect to the wireless network!

Step 2: Mobile Phone settings

To put it simply, you can find the specific location, that is, set the IP address of the wireless network of the mobile phone, and set the subnet mask, the gateway and dnsip address are set as 192.168.2.x, but X cannot be the same as other wireless devices! The subnet mask or 255.255.255.0 gateway is 192.168.2.1. The preferred backup DNS is 192.168.2.1! After the configuration is complete, other wireless devices can connect to the virtual network and then share the internet!

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.