In this article, I want to allow my mobile phone to access the Internet through a wired connection to my computer.
Android phones can access the Internet through WiFi, which is good. But how can I get on without WiFi? 3G ---> traffic is limited. It is not cost-effective to watch videos!
I have summarized several methods for your reference.
Method 1: USB connector and wired Internet access through mobile phone
Here I will talk about the general process, specific visible http://www.angeeks.com/thread-41906-1-1.html
1. Connect your phone to your computer through a USB cable, and select "Settings"> "wireless and network"> "bind to portable Hotspot"> "USB binding". A virtual NIC will appear on your computer,
To facilitate resolution, change the virtual network card name to Android;
2. Share the computer network to the android Nic;
3. Open the Super Terminal, Su becomes a Super User, and query the mobile phone IP Address
# Busybox ifconfig
Mobile IP Address: 192.168.43.100 (different for everyone)
4. Change the IP address of the android Nic on the computer to 192.168.43.1;
5. Add a default gateway
# Busybox route add default GW 192.168.43.1
Auxiliary software: busybox and z4root
Key point: the gateway IP address on the mobile phone is the same as the IP address on the computer.
Method 2: wireless network card and mobile phone AP
This method is applicable to laptops with wireless NICs, but does not support adhoc. Method 3 is recommended for anhoc.
1. Select "Settings"> "wireless and network"> "bind and portable Hotspot"> "portable Wi-Fi hotspot" and set the AP (for example, "myap );
2. Connect the computer to myap and obtain the IP address (for example, 192.168.23.121 );
3. Add a default gateway
# Busybox route add default GW 192.168.23.121
Auxiliary software: busybox and z4root
Key point: the gateway IP address on the mobile phone is the same as the IP address on the computer.
Method 3: Support adhoc wireless network card and build WiFi
If the wireless network card of the computer is not supported, you can buy a USB wireless network card that supports adhoc (generally with a driver, you can directly simulate the AP for your mobile phone ).
Here taking win7 as an example, let's talk about the general process, specific visible http://www.deepin.org/article-117-1.html
1. Run the command prompt as an administrator;
2. Enable and set the "virtual Wi-Fi network card" mode;
Run the following command to enable the virtual wireless network card:
Netsh WLAN set hostednetwork mode = allow SSID = (enter the wireless network name here) Key = (password here)
3. Enable Internet Connection Sharing (ICS )";
4. Enable the wireless network: netsh WLAN start hostednetwork
5. WiFi set for mobile phone connection
Okay, that's all. I hope it will help you.