Go Back   Android Forums > Android Phones > T-Mobile G1 > G1 - Support
G1 - Support Support forum for the G1.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old August 4th, 2009, 05:07 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jul 2009
Location: Milano, Italy
Posts: 48
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to spupuz Send a message via AIM to spupuz Send a message via MSN to spupuz Send a message via Yahoo to spupuz Send a message via Skype™ to spupuz
Default Can i share the connection between android and my pc through USB cable?

Hi i founded something from google can someone confirm that? and in that case i do need ROOT?

Code:
Can i share the connection between android and my pc through USB cable?

I'd like to connect to the internet with my android using the PC  internet connection. Yes, you can. It's described on koolu's forum. Check this link [1].

If you dont have access i just copy paste the instructions below.
All credit goes to koolu and Brian Code for this info:

[1] forum.koolu.org • Login

Yes, you can use the USB to browse the web...

You need to do three things to enable the internet.

1. First make sure that network forwarding is working on the computer  that the phone is connected to. 2. Add the default route to the phone:

Code: Select all
    route add default gw 192.168.0.200 dev usb0


3. Add the dns for proper name resolution

Code: Select all
    setprop net.dns1 192.168.0.200



You should be able to ping the computer the phone is connected to:

Code: Select all
    ping 192.168.0.200



You should also be able to ping IP addresses outside of that subnet if  the route has been set up properly. The route can be verified by:

Code: Select all
    cat /proc/net/route

spupuz is offline  
Reply With Quote
The Following User Says Thank You to spupuz For This Useful Post:
sponsored links
Old August 4th, 2009, 08:26 AM   #2 (permalink)
Premium Member
 
justjimjpc's Avatar
 
Join Date: Nov 2008
Location: Washington DC, USA
Posts: 10,560
 
Device(s): G1(2ea) 1 rooted, MT3G v1.0, Samsung Vibrant, Samsung III, LG SLATE Tablet
Carrier: T-Mobile

Thanks: 5
Thanked 220 Times in 104 Posts
Default

Quote:
Originally Posted by spupuz View Post
Hi i founded something from google can someone confirm that? and in that case i do need ROOT?

Code:
Can i share the connection between android and my pc through USB cable?

I'd like to connect to the internet with my android using the PC  internet connection. Yes, you can. It's described on koolu's forum. Check this link [1].

If you dont have access i just copy paste the instructions below.
All credit goes to koolu and Brian Code for this info:

[1] forum.koolu.org • Login

Yes, you can use the USB to browse the web...

You need to do three things to enable the internet.

1. First make sure that network forwarding is working on the computer  that the phone is connected to. 2. Add the default route to the phone:

Code: Select all
    route add default gw 192.168.0.200 dev usb0


3. Add the dns for proper name resolution

Code: Select all
    setprop net.dns1 192.168.0.200



You should be able to ping the computer the phone is connected to:

Code: Select all
    ping 192.168.0.200



You should also be able to ping IP addresses outside of that subnet if  the route has been set up properly. The route can be verified by:

Code: Select all
    cat /proc/net/route
You can tether your pc to your phones connection via usb cable ...
Search the net for app call PDANET (it is not in the market)
__________________
Help Us: Submit FAQ's You have answered over and over! Will add them to OUR FAQ LIB. Check out our FAQ's.... Also Check out our Tag Search. \\\ Running 2 G1's & a MT3G, Vibrant(rooted), Galaxy S: <<< OLD New >>> JUST Samsung S3-32GB & LG GSlate Tablet /// Link for --> G1 Dream ROOT GUIDE ///// Link for --> UN-ROOT GUIDE
.
justjimjpc is offline  
Reply With Quote
Old August 4th, 2009, 09:21 AM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jul 2009
Location: Milano, Italy
Posts: 48
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to spupuz Send a message via AIM to spupuz Send a message via MSN to spupuz Send a message via Yahoo to spupuz Send a message via Skype™ to spupuz
Default

emh i do not want to use my android phone to connect the pc to internet, i do wanna use the internet connection of the pc to connect the phone to internet
it's clear?
spupuz is offline  
Reply With Quote
Old November 9th, 2009, 10:40 PM   #4 (permalink)
New Member
 
Join Date: Oct 2009
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by spupuz View Post
Hi i founded something from google can someone confirm that? and in that case i do need ROOT?

Code:
Can i share the connection between android and my pc through USB cable?

I'd like to connect to the internet with my android using the PC  internet connection. Yes, you can. It's described on koolu's forum. Check this link [1].

If you dont have access i just copy paste the instructions below.
All credit goes to koolu and Brian Code for this info:

[1] forum.koolu.org &bull; Login

Yes, you can use the USB to browse the web...

You need to do three things to enable the internet.

1. First make sure that network forwarding is working on the computer  that the phone is connected to. 2. Add the default route to the phone:

Code: Select all
    route add default gw 192.168.0.200 dev usb0


3. Add the dns for proper name resolution

Code: Select all
    setprop net.dns1 192.168.0.200



You should be able to ping the computer the phone is connected to:

Code: Select all
    ping 192.168.0.200



You should also be able to ping IP addresses outside of that subnet if  the route has been set up properly. The route can be verified by:

Code: Select all
    cat /proc/net/route
did you get it working spupus? i would like to have it too, thx
Ramoda is offline  
Reply With Quote
Old November 17th, 2009, 07:54 PM   #5 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did anyone get this working? I, too, would like to use the internet (as provided by the PC) over the USB cable and onto the phone. I call this "reverse-tethering".
If anyone has any information please let us know!
Thanks!
szman is offline  
Reply With Quote
Old November 22nd, 2009, 10:45 AM   #6 (permalink)
Premium Member
 
justjimjpc's Avatar
 
Join Date: Nov 2008
Location: Washington DC, USA
Posts: 10,560
 
Device(s): G1(2ea) 1 rooted, MT3G v1.0, Samsung Vibrant, Samsung III, LG SLATE Tablet
Carrier: T-Mobile

Thanks: 5
Thanked 220 Times in 104 Posts
Default

Quote:
Originally Posted by spupuz View Post
emh i do not want to use my android phone to connect the pc to internet, i do wanna use the internet connection of the pc to connect the phone to internet
it's clear?
Do a TAG search on this site for tethering ...

There is an App you might try PDANet .... search the web for it ..
justjimjpc is offline  
Reply With Quote
Old November 30th, 2009, 11:14 AM   #7 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

We dont want to tethering...
What we want is to use our PC cable connection(not a wireless one) and use it in our android through USB like in WM with activesync...

I find it stupid that a phone with alot of apps using internet doesnt have this as a default feature...if i knew this maybe i wouldnt buy an android phone.I use this alot at home,work,etc...now i have this wonderfull phone in my pocket most of the day because i dont have a WiFi connection to use.
I go further to say its descriminatory,like the entire world uses wireless connections or have open WiFi spots.
ZED_pt is offline  
Last edited by ZED_pt; November 30th, 2009 at 11:15 AM.
Reply With Quote
Old November 30th, 2009, 11:27 AM   #8 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have searched low and high, tried a few things, but I don't see reverse tethering working anytime soon on android.
szman is offline  
Reply With Quote
Old December 7th, 2009, 07:26 PM   #9 (permalink)
Member
 
Join Date: Sep 2009
Posts: 208
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

there is no way to do it on a usb cable.
thats not how it works, however they may be hope if:
1) if your rooted
2) your computer has a wireless internet card
3) your computer is connected to the internet via a wire.

you can use your computer to set up a ad hoc network that your phone will connect to.
however android doesn't support adhoc so you'll need to have a rooted phone
Sweed is offline  
Reply With Quote
Old December 7th, 2009, 07:42 PM   #10 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

nah, this really needs to work across usb or bluetooth. This is an area where Windows mobile is much better than android.

creating adhoc wireless networks is OK, but not as elegant as Windows mobile.
szman is offline  
Reply With Quote
sponsored links
Old December 12th, 2009, 02:14 PM   #11 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

We really need this feature too. We're showing our new Android app at CES (consumer electronics show) next month in Vegas, but, from my experience at prior CES's, it's completely impossible to get Wi-Fi to work on the show floor (there's thousands of access points in a 100 foot range), and, even voice calls fail 80% of the time since there's too much congestion in a big trade show.

We have a hard-wired internet connection to Linux and Windows PC's in the booth, so I want to have give the Android phone (G1, Cliq, anything) a hard-wired internet connection over the USB, and maybe use a VOIP telephony client that uses the network connection, so when we need to demo our app, we know that our phone will have a reliable internet connection and be able to make/receive calls.

I read this thread about reverse tethering over wi-fi: Connect G1 to Ad-hoc network SOLVED - Page 2 - Android and G1 Forums, Mods, Hacks, News, Downloads, Skins, Themes, and more! | ModMyGphone
which doesn't solve our problem, but, since Linux supports ethernet over USB it seems there must be a way, particularly if you have Linux running on the PC also.

If anybody knows how to make this work we'd be willing to offer a cash bonus or a consulting fee to make it happen. Without this feature we can't demo our wares at the show, only talk about them.
bergenp0 is offline  
Reply With Quote
Old August 15th, 2010, 06:21 AM   #12 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Sweed View Post
there is no way to do it on a usb cable.
thats not how it works, however they may be hope if:
1) if your rooted
2) your computer has a wireless internet card
3) your computer is connected to the internet via a wire.

you can use your computer to set up a ad hoc network that your phone will connect to.
however android doesn't support adhoc so you'll need to have a rooted phone
The best would have been a connection thought USB cable, however, this method with Adhoc network could help me. Could you please explain further how to do it? how can I "root" my android phone?
Thanks
anthonynon is offline  
Reply With Quote
Old December 10th, 2010, 02:35 AM   #13 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default cell phone access

Can I use my cell phone aka smart phone aka android to access the internet from my pc aka notebook using the data plan on the cell? I know one can get an internet usb stick but seems I already have the net on my cell phone I might as well use it
cougarthecat is offline  
Reply With Quote
Old December 19th, 2010, 06:23 AM   #14 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is possible to reverse tether(use internet of pc to the phone)
You need two things for this purpose
1.An additional network card(if you are using a wireless broadband internet on pc, you dont need addl card - means if your existing nic is free(n/c) then you dont need addl. card)
2. A wireless router

Steps:

1. Bridge two lan connections by right clicking and add to bridge
2. COnnect your wireless router to the free lan port
3. Acces internet(for other devices) from the wireless signal of the router.
Thats it.

Additionally, it is possible to make your android phone as a wifi hotspot. it is great feature in froyo2.2

best of luck
navaskdl is offline  
Reply With Quote
Old December 30th, 2010, 07:22 PM   #15 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Reverse tendering through USB is implemented on the HTC Desire HD and just comes up as an.option when the USB cable is connected. My wife has an LG GT 540 which is a piece of junk, but I would like to connect through USB in the same way I do with the HTC any ideas would be welcome Incidentally HTC call it Internet Passthrough.
ReggieSpencer is offline  
Reply With Quote
Old December 30th, 2010, 07:26 PM   #16 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, beaten once again by the auto correct. tendering should of course been tethering.
ReggieSpencer is offline  
Reply With Quote
Old February 7th, 2011, 11:39 AM   #17 (permalink)
New Member
 
Join Date: Feb 2011
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default Solution

I bet most people who got to this post already found it, but here is a blog post on instructions on reverse usb tethering on android:

Mycila Blog: Reverse USB Tethering with Android 2.2
mgranja is offline  
Reply With Quote
The Following User Says Thank You to mgranja For This Useful Post:
jalebian (March 28th, 2011)
Old March 13th, 2011, 02:44 PM   #18 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the blog post link, looks good. Don't have Android 2.2 on my phone thou so I need a tethering android app that would add the functionality.

Anyone knows a good free tethering app that can be reverse tethered as per the guide ? Anyone tried that solution?
SkyHiRider is offline  
Reply With Quote
Old May 4th, 2011, 09:59 AM   #19 (permalink)
New Member
 
Join Date: Feb 2011
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

here try this , is working from my laptop
Simple Trick For Share Internet Connection Between PC And Android Phone Using Wifi | BEST-4-U.COM
ramuk8or is offline  
Reply With Quote
Old June 19th, 2011, 06:31 AM   #20 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default G1 not connecting to Windows 7

I have bought a G1 from a friend and he has only given a USB cable. I have tried connecting the phone to my laptop (Windows 7) but its not coming up in My Computer. The laptop makes a noise when the USB is connected but no Autoplay window opens up and nothing is there on the phone to access the phone. I have tried using different cables and the same things.....

I found it in under Devices and Printer but it is called Android Phone and when I right click it the only options are Create Shortcut, Troubleshoot and Properties so I can't go in to the phone. I have gone through Properties and updated the driver but still nothing and I can't get in......

Please could you help urgently because I want to access my phone through the laptop. Also, I am running on Android 1.6 so no roots on the phone and I have recently Factory reset it when I got the phone..............
sk9412 is offline  
Reply With Quote
sponsored links
Old August 17th, 2011, 09:43 AM   #21 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Any easy way to connect my NEXUS ONE Android 2.2 to the internet throw my computer connection ? (connect phone to PC by USB)

Thanks.
kaykhanittha is offline  
Reply With Quote
Old September 15th, 2011, 10:13 PM   #22 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just did this with adb. The steps are shared in my note here: How to set up Android ppp over usb with adb | Xinotes
freyo is offline  
Reply With Quote
Old September 26th, 2011, 02:20 PM   #23 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by freyo View Post
I just did this with adb. The steps are shared in my note here: How to set up Android ppp over usb with adb | Xinotes
This is great. This is what I am looking for except I need a Windows version of this. My work PC only has WindowsXP.

Thanks,
Greg
greenhorn is offline  
Reply With Quote
Old October 25th, 2011, 09:30 PM   #24 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would also like to link my phone and pc via the usb cable. Did you figure out a way of doing it Greg or anyone else?

TIA
Droidram is offline  
Reply With Quote
Old October 25th, 2011, 10:01 PM   #25 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Droidram View Post
I would also like to link my phone and pc via the usb cable. Did you figure out a way of doing it Greg or anyone else?

TIA
I never did. I really wish there was a way to get the PPP over USB working as above. Using XP as a WiFi hotspot never worked either, only works for Win7.

Greg
greenhorn is offline  
Reply With Quote
Old October 30th, 2011, 05:16 AM   #26 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 41
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by freyo View Post
I just did this with adb. The steps are shared in my note here: How to set up Android ppp over usb with adb | Xinotes
Does this require a rooted phone?

I'm wondering if it will work on a stock Droid X2.

Thanks

Edit: Also pardon my ignorance, but how does one establish a fixed IP address on the phone for a connection over USB?

Thanks
blafarm is offline  
Last edited by blafarm; October 30th, 2011 at 01:10 PM.
Reply With Quote
Old November 1st, 2011, 08:07 PM   #27 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by blafarm View Post
Does this require a rooted phone?

I'm wondering if it will work on a stock Droid X2.

Thanks

Edit: Also pardon my ignorance, but how does one establish a fixed IP address on the phone for a connection over USB?

Thanks
I think it does. You just need adb enabled on the phone. The IP connection is established with PPP between the phone and the computer. USB is a serial comm port, just like the old phone line dial up.
freyo is offline  
Reply With Quote
Old November 1st, 2011, 11:03 PM   #28 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 41
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by freyo View Post
I think it does. You just need adb enabled on the phone. The IP connection is established with PPP between the phone and the computer. USB is a serial comm port, just like the old phone line dial up.
Thanks for your response.

I've been reading up on ADB and I have a quick question:

Does your method represent a "plug and play" solution?

Meaning; does the user simply connect the USB cable, enable ADB on the mobile device -- and start using the host computer's Internet connectivity?

Or, does the Linux machine need some amount of attention every time the user wants to "reverse tether" to it?

Thanks very much.
blafarm is offline  
Reply With Quote
Old November 4th, 2011, 11:49 AM   #29 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, it's not "plug and play". There are several manual steps to establish the PPP. Once the PPP is established, there's no need to babysit. You can automate the steps with a script.
freyo is offline  
Reply With Quote
Old November 28th, 2011, 09:29 PM   #30 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks ramuk8or for this one --> Simple Trick For Share Internet Connection Between PC And Android Phone Using Wifi | BEST-4-U.COM! Connectify worked perfectly! I was also able to solve the issue I had regarding the can't establish a reliable data connection to the server error I get everytime I tried connecting via 3g! Thank you thank you thank yoooooooooouuuuuuuu...
cherrybum is offline  
Last edited by cherrybum; November 28th, 2011 at 09:58 PM.
Reply With Quote
sponsored links
Old June 5th, 2012, 01:13 PM   #31 (permalink)
New Member
 
Join Date: May 2012
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

look at this answer
breceivemail is offline  
Reply With Quote
Old September 22nd, 2012, 02:10 PM   #32 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ZED_pt View Post
We dont want to tethering...
What we want is to use our PC cable connection(not a wireless one) and use it in our android through USB like in WM with activesync...

I find it stupid that a phone with alot of apps using internet doesnt have this as a default feature...if i knew this maybe i wouldnt buy an android phone.I use this alot at home,work,etc...now i have this wonderfull phone in my pocket most of the day because i dont have a WiFi connection to use.
I go further to say its descriminatory,like the entire world uses wireless connections or have open WiFi spots.
I know this is an old post but I just had to reply. It's hilarious. Discrimination against antiquated technology LOL. Yes, I think that 8 tracks, cassette players, Beta, VHS, CDs, x86 processors, the commodore 64, atari 2600, CRT screens, those big keyboards with the giant trackballs....ball mice....all these and more should really start a class action lawsuit against new technologies for being so mean and discriminatory.

LOL. I can see it now...Rosa Analog Parks will be sitting at the back of the computer store protesting. They'll broadcast their message across the internet by way of compuserve and AOL.

This is WAY too amusing to me.
Aro2220 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > T-Mobile G1 > G1 - Support
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://androidforums.com/g1-support/7382-can-i-share-connection-between-android-my-pc-through-usb-cable.html
Posted By For Type Date
????????? tablet android ??? internet ????????????? usb ???? This thread Refback January 16th, 2012 12:14 AM


All times are GMT -5. The time now is 04:42 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.