Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Possible Duplicate:
How to set up reverse tethering over USB?

Is there a way to do this?

I'm trying to reverse tether my Android phone. I'd like it to use my PC connection. Many guides on the net say that I should root my phone, but I don't want to do that.

What I would like to happen:

  • connect Android to the Internet via wireless
  • attach to PC via USB, in "tethering usb mode"
  • PC is already connected to the Internet in another way (cable)
  • when I disconnect the wireless connection on the Android phone, then the Android phone uses the connection of my PC

With no internet connection on my phone I can't connect successfully to the PC. So, I'd like to know if there is a way to let the Android device believe it is connected to the Internet.

I'm using Ubuntu 11.04

share|improve this question

migrated from stackoverflow.com Jul 24 '11 at 19:37

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Matthew Read Mar 21 '12 at 18:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
I'm interested in this too. It would allow testing applications on mobile without Wi-Fi or network connectivity. –  Audrius Jul 25 '11 at 12:22
    
@Audrius: you can do this using android sdk and Eclipse plugin. A "virtual android device" will be created on your PC, so you can test on PC all applications you develop, and you can also use the PC connection. Google to have more informations about :) –  the_candyman Jul 26 '11 at 17:22
1  
That is correct, but I want to test on a multiple physical devices and I can't afford buying multiple SIM cards and/or swapping them around. –  Audrius Jul 27 '11 at 10:45
    
I'm voting this question to close, it's difficult to tell how is this different from How to set up reverse tethering over USB?. The OP should clarify whether he just want a reverse tethering or something more. –  Lie Ryan Sep 24 '11 at 16:33
add comment

3 Answers

You haven't specified if you have wireless capability in your computer. Assuming you have one or can manage wireless in your computer then you can take the following steps to share the computer's Internet via ad-hoc wireless connection.

First create an ad-hoc connection in your computer so that your phone can connect to it. You can follow this guide for that.

After that you have to enable Internet connection sharing in your computer. Follwo this guide for that.

Now from your Android phone search for the ad-hoc network you created and connect to it. Internet should work fine.

One more thing I should mention is that when I tried the same for my cousin it didn't work. The phone couldn't see the ad-hoc network. She had Windows 7 in her computer. But after little Googling and using 3rd party software for ad-hoc connection in the computer, everything worked.

share|improve this answer
    
it seems that Android isn't able to see ad-hoc wireless connection for security reasons. It is required a rooted phone to do so. –  the_candyman Jan 31 at 15:24
add comment

I tried this a while back when I first got an Android phone, but it didn't fully work. In windows 7 I use http://www.connectify.me and that works perfectly, so I never continued with it in Ubuntu.

Try these anyway:

https://help.ubuntu.com/community/WifiDocs/WirelessAccessPoint

http://www.esrun.co.uk/blog/ubuntu-gateway-access-point-server/

Let us know how you get on... would be interesting to know!

share|improve this answer
add comment

The Replicant Project has a page on how to use USB Networking; you'll need a rooted phone, the scripts there, and a GNU/Linux system to use the scripts with little to no modification.

However, it's a start.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.