• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

spupuz

Newbie
Jul 31, 2009
49
0
46
Milano, Italy
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] [url=http://forum.koolu.org/viewtopic.php?f=10&t=89]forum.koolu.org • Login[/url]

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
 
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] [url=http://forum.koolu.org/viewtopic.php?f=10&t=89]forum.koolu.org • Login[/url]

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)
 
Upvote 0
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] [url=http://forum.koolu.org/viewtopic.php?f=10&t=89]forum.koolu.org • Login[/url]

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
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0
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..............
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones