Or Continue to Thread: Internet on G1 via USB cable (…
Find Your Device:
1st February 2011, 07:32 AM   |  #14  
Senior Member
Flag Lockport,IL
Thanks Meter: 7
 
140 posts
Join Date:Joined: Jun 2009
More
I have know idea if this will work or not, but I have found this on a few different forum all posted by Diyism, so if it does work he deserves all the credit.
Code:
My android os is CyanogenMod 4.2.14.1,
1.Enable "Settings\Wireless controls\Internet tethering"
2.Install HTC Remote NDIS based Device driver(http://forum.xda-developers.com/atta...2&d=1265356413)
3.Set the HTC adapter as: IP:192.168.2.1, Mask:255.255.255.0
4.Set the PC ethercard as shared connection
5.Run these codes in terminal:
su
ifconfig usb0 192.168.2.2 netmask 255.255.255.0
busybox route delete default
iptables -F
iptables -F -t nat
busybox route add default gw 192.168.2.1
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""

6.Now your g1 could open browser to view any web pages on the internet, and update apps in the Market.