windows 7 was tested successfully, and the operation on the computer was much simpler than the XP system. Take a look at the following actions
**********************************************************************************************
One: Related preparation
****************
1, the mobile phone system is 2.2.
2, the phone needs root permission, and check the USB debugging.
3, the computer installed a good Samsung driver.
4, the mobile phone installed script software Gscrip (must be in English version, Chinese version can not be used).
**********************************************************************************************
Second: Related steps
****************
1, the operation on the computer:
The first step:
(First of all: please note the following "original local connection" and "new local connection", please do not confuse)
Connect your phone to your computer with USB, tick "USB debug ", and Tick " set-Wireless and connect-bind-USB bindings" on your phone. At this point in the bottom right of your computer to open your network Sharing Center will see a new local connection "Local Area Connection 2", if a pop-up window lets you set the network type, then please set it to " Home Network ":
**********************************************************************************************
Step Two:
Click Local Connection 2 point "Details" to see a IPv4 address, as shown in, please note the IP address , below the mobile phone operation in the first step to use.
**********************************************************************************************
Step three:
Click local Area Connection (is the original local connection, not local Area Connection 2), pop up a window, click "Properties" in the lower left corner, pop up a window, click "Share" above, Put the two below hook on the " please select a private network connection " select " local connection 2", click OK
**********************************************************************************************
2, the operation on the phone:
The first step:
Download and install Gscript in the phone, run, click on the phone "menu key (mobile left button)-add gscript", fill in the above input box a script title (casually write, like my write for USB Internet), The following input box (which can be copied with the UC browser) is written as follows ( note that you want to wrap the script code in the diagram as well ):
(can also be executed on the computer side into the ADB shell, remember to change whether it is usb0 or RNDIS0, see clearly and then execute)
busybox ifconfig usb0 192.168.137.2 netmask 255.255.255.0
BusyBox Route Delete Default
Iptables-f
Iptables-f-T NAT
BusyBox route add default GW 192.168.137.1
setprop net.dns1 8.8.8.8
<ignore_js_op>
PS: Red is the IP address I wrote down to modify the data behind, for example, I wrote down the 192.168.137. 2 I changed to 192.168.137. 1 , as long as the end of the number is 0 to 255 of the one can, but not the same IP address you noted;
The Blue one writes the IP address that we wrote down. Note that the script can not one or less one space, you may copy the script I gave to the phone to paste into the Gscript software, modify the need to change the place can be, so that there is no error.
**********************************************************************************************
Step Two:
gscript Fill in the completed click Save (Save), get the third picture "USB Internet". Now click on the script in the Gscript "USB Internet",3 seconds or so will automatically close (off), such as, from 2 seconds to 0 seconds and then back to the script interface (the third one, If you do not see the following 3 pictures, most will not succeed)
<ignore_js_op>
then close your mobile network connection or enter the flight mode to try, open the UC Browser, click on a Web page to see if you can surf the Internet, you may also be on the computer local connection 2 can see the data sent and received in the walk on the success of the show.
**********************************************************************************************
next time you want to connect the USB computer to the Internet on the phone tick the USB binding , and then run the script we set to shut down the mobile network.
Note: If the internet is not available, please check if the IP address changes, if changed, please set up a different IP address in the computer, modify the script IP can be.
**********************************************************************************************
Well, I wish you success!
**********************************************************************************************
Transfer from http://android.zone.it.sohu.com/forums/thread-7005434-1-1.html
Mobile phone sharing PC-PC network via USB