Excerpt from my post in CSDN: http://bbs.csdn.net/topics/390887615
In the Android phone, "Settings", "Wireless/Network", "binding and portable Hotspot", after checking the "USB binding" entry, insert this Android phone into the pc/wince device, in the Pc/wince device's "network connection" will be more than one NIC.
When displayed on a PC, the device name entry appears as: Windows mobile-based Internet sharing device. This is interesting, and Android phones are displayed as Windows Mobile-related devices, which are also shown when Windows Mobile is connected to a PC via USB.
When displayed on a WinCE device, the device name is not observed.
At this point, the Android phone and pc/wince device should be the same LAN settings, through the Socket should be able to achieve communication.
Android phone with PC via Socket communication, the IP of the phone is: 192.168.42.129.
192.168.42.129 is displayed when the Ipconfig/all is executed on the PC:
Default Gateway ..... . : 192.168.42.129
DHCP Server ........... : 192.168.42.129
DNS Servers ........... : 192.168.42.129
But there is a problem: After this connection, it will affect the network of the PC: there is no way to surf the internet.
Using the USB bindings feature on your Android phone