Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was implementing reverse-tethering using Samsung galaxy fit and ubuntu 10.10
I have followed the following post for the procedure: How to browse Internet in Samsung Galaxy Fit using Broadband in Windows 7?

I am using a DSL connection(BroadBand) and upon running

sudo ifconfig eth01

I got

SIOCSIFADDR: No such device

so i renamed the DSL connection to eth0 ,then it worked fine.

The main Problem occured in implementing the third step: on running

./adb shell netcfg usb0 dhcp

I got error:

device not found

Usb tethering on the Mobile is on. The Mobile is new and I have not much with it.

share|improve this question

I am trying to do the same thing on my Samsung Captivate (Galaxy S) with no success. I have followed this tutorial:

And I think that the problem is, and may also be for you, that "tethering and Usb debugging don't work simultaneously on this device". Bummer.

share|improve this answer

The instructions for USB Networking Replicant are here. Replicant is a Free Software-Only fork of CyanogenMod, so it's more or less a rooted Android.

(It's entirely possible that USB networking requires root, as Replicant ships with root out of the box.)

I've done similar steps on other phones running Linux (OpenMoko FreeRunner). The scripts on the host PC is for Linux users, so it's not as applicable to your question as I'd like, but it's something.

Short version, on phone:

echo 1 > /sys/class/usb_composite/rndis/enable
ifconfig usb0 up

As of note, this may require busybox pushed to your phone, which is common in rooted environments.

share|improve this answer

After running the following command:

sudo ./adb shell netcfg usb0 dhcp or
./adb shell netcfg usb0 dhcp 

I get:

action 'dhcp' failed (Permission denied)

I think this is because the phone needs to be rooted, aka it is not possible to have reverse-tethering without rooting, at least not on Samsung Galaxy. If I'm wrong (and I hope so), please correct me.

share|improve this answer
"Permission denied" can also act like "command not found" on Android. There's no distinction between the two in the default shell shipped with Android. – Broam Aug 4 '11 at 14:17
Well I don't care too much weather I don't have the permissions or the command is not available. By the way I think the command is there because if I run: sudo ./adb shell netcfg I get all network interfaces listed. So what I care is: why is Step 4 of the tutorial not working for me? Step 4 is: ./adb shell netcfg usb0 dhcp For me it fails with following error: action 'dhcp' failed (Permission denied) My hypothesis is that step 4 fails for me because it is not rooted. So if someone knows that this is not true, please correct me. Luca – Luca Aug 4 '11 at 14:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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