yashsingh1/xdaforums huggingface dataset:
[Networking] Mkkt Bkkt:
thank you very much , got it working in like 30sec , one step , better than anything i saw :highfive: :good:
[Networking] Babakkardan:
Usb reverse tether between two android devices

I want to set up a usb reverse tether connection between two android devices. What setup do I need on the device which is providing the internet connection? Both devices have root access. Any guidance would be great, thank you.
[Networking] zygd:
It really works. Is it possible to, using similar method, create from Android BOX with WiFi and Ethernet port an Access Point to share WiFi for other devices? Ethernet port is seeing as cellular network.
[Networking] shouk_1987:
I add my voice to this one

It really worked and i am totally happy with it

It was a little pain at the start because adb was not seeing my device because my LG drivers were not installed

Also the APK was not pushed by adb and hence i installed it manually first

once I installed LG drivers, minimalist adb, the APK and usb debugging is enabled , the cmd script file run just fine

I am having reverse tethering at my work while my Data connection is Off
[Networking] ansh170993:
Getting proxy error

Hello, I tried all the steps in the windows. The steps worked fine but I am still not able to use the internet on my device. I am getting "err_proxy_connection_failed" error when trying to open anything in my browser. Can anyone please help me here?

PS: I am using a corporate network.
[Networking] Mahesar:
Help!

It's perfect but today I got one more way but it is not critical to follow: this you shared that it is working at there but same thing not running fine at here.
[Networking] big bad brad 31:
Using Linux Mint 20.1 Cinnamon.

When I type in the command

netcfg rndis0 dhcp

it says

netcfg: command not found.
[Networking] liandex:
Seems to work fine here.

The only concern is that when the pc already uses a vpn, the phone does not seem to use the dns settings of the pc internet connection: the pc only uses the dns server of the vpn, the phone uses other dns servers (=does not pass the dns leak test).
[Networking] liandex:
Maybe too much to ask for, but, would it be possible for the phone to 'know' what kind of connection (ethernet or wifi) is shared?
[Networking] mykeyin:
I have a wifi version tablet, it doesn't have 3g connection. how can i make all apps recognize internet connection?
[Networking] indomfp:
I am getting stuck on Step #2:

----

-If you are using Windows, open "Network Connections" in Control Panel. It is somewhat different from setup in Linux. Right click on an Internet connection that you have. I assume that you are using a desktop which doesn't have any wifi adapter, so right click on LAN Ethernet connection with Internet, and select "Properties". In tab "Sharing" (or "Advanced" for Windows XP), click "Allow other network users to connect through...", then select the USB connection in dropdown list below. Click OK. Windows will automatically setup your USB network connection and assign to it an IP address, default for Windows 7: 192.168.137.1, default for Windows XP: 192.168.0.1. You can see your Internet connection is now "Shared" and your USB connection is now "Unidentified network".

----

I do not see USB connection as one of the options to select in the dropdown. In addition, when I connected my tablet (Infinity TF700) to my computer, running Windows XP, I do see the tablet listed as a Local Area Connection.

What am I doing wrong?
[Networking] dtozik:
Thanx!
[Networking] lightson:
a bit confused on this. I tried this and finally I can access play store, facebook, etc that didn't recognize the tethering before.

but, should the mobile internet connection remain on? :confused:
[Networking] karthikkolanji:
Not working
[Networking] partho222:
nice post bro . works without any problem
[Networking] robertogl:
there is no way to do this on linux without be the administrator, right?
[Networking] Flyview:
Just got this working where I work.

Things to note:

1) I have to restart the phone while it's plugged in to usb, then enable usb tethering, and then run the commands in terminal emulator. Otherwise it doesn't work. We should figure out why this is. EDIT: Second day, I no longer had to restart.

2) For all apps to work you need to ifconfig either your wlan (wlan0 for me) or mobile network (rmnet0) to 0.0.0.0 (ex. ifconfig wlan0 0.0.0.0). If you do the wlan, you have to actually be connected to an access point (doesn't matter what).
[Networking] 9823j4ia:
I got it working too. When I restarted the phone, stopped working. Looks like I'll have to enter the commands in terminal emulator each and every time to get internet access.
[Networking] Flyview:
Definitely, you have to reenter them every time you disconnect and reconnect the cable. What I found is I also need to restart the phone after connecting the cable...
[Networking] 9823j4ia:
Oh god. Guess I'll rarely use this at all. If I could get adb working, maybe it'd be easier so I can type the commands on my PC keyboard. I don't have to restart though.
[Networking] N3Ph1L1M:
THANKS

Wow thanks bro!

---------- Post added at 03:03 PM ---------- Previous post was at 02:55 PM ----------

Is anybody getting the message when they use the browsers that say "Mobile data is disabled. Connect to wifi nework instead or enable mobile data and try again"? It's still working, I have access, and can use all my apps, it's more of an annoyance and was wondering if there was anyway to remove the warning?

If not no biggie
[Networking] Flyview:
Did you do the optional step of setting the wireless or data to 0.0.0.0 and then enabling it? This will tell the phone you are connected to a source of data. It doesn't recognize the USB internet.

ifconfig wlan0 0.0.0.0 OR

ifconfig rment0 0.0.0.0

BUT keep in mind if you do it for wifi, you have to actually be connected to a wifi point (doesn't matter if it's working, could be anything) and if you do it for data, I don't think your data will work again until you disable and reenable.
[Networking] fOmey:
Im thinking the galaxy gear, This method via bluetooth = win.
[Networking] gaurav247star:
no offence ... but if ur rooted then this method link is a piece of cake . than the procedure shown in this thread
[Networking] chaoscreater:
Or use this:

http://xdaforums.com/showthread.php?t=1371345
[Networking] Lamensis:
If your PC has a Bluetooth Dongle you can simply use Bluetooth Tethering (thats how i use 4G on my tablet, through my DHD)
[Networking] r4v3rr:
Nice. Could only be better if it was in a script for use with script manager
[Networking] Publiuss:
Well, a script would be nice for newbies.
[Networking] anurag.dev1512:
usb0 interface

hey bro the very first step is showing the error i have attacked the screenshot ...plzzz hel me bro....
[Networking] capslock66:
Slower ? For sure ?

It take only a few milliseconds to take the packet and send to usb, it's nothing compared the internet itself that use a lot of routers (software inside).

The tool take the packet and send to internet. Windows does exactly the same (windows is a also a software).

Check the [URL="http://xdaforums.com/showthread.php?t=1371345" ]reverse tethering tool[/URL] page :

All problems are fixed since 6 months.

99.9% of android programs work perfectly. It's even possible to download from google play.

Some applications need a Wifi connection to work. The tool will simulate it.

The tool is portable ,

nothing

installed. Work only on Windows (more than 95 % of users computer, sorry for others)

Only one click to connect !

Very good tutorial. I will take a closer look, if case of I can use some commands ;)

But it's reserved to a very small minority of Power users (or for linux and apple users).

I respect your work and don't want to minimize it !

I added a link to your guide on the top of the reverse tethering tool page !
[Networking] pNuLLp:
How about if i'm behind a proxy with autentication required?

ReverseTethering Tool allow me to use Proxifier..,

Theres a way to get trought with this method?
[Networking] banboy:
what if the providers already blocked your tethering ? since I'm using smartphone, tmobile can notice that when I turn on the tethering it's start to redirect to the tmobile page to pay more for tethering .
[Networking] hrk7474:
Start by turning your phone's 3G and WiFi off, so your phone does NOT have any internet connection. This is about using your computer's DSL/Cable/Fiber connection with your phone, not using your phone's 3G connection with your computer.

If you meant you connect your computer to the internet through a T-mobile mobile internet dongle, don't know if it would work, but you would have to share that connection on your computer if you want to try.
[Networking] banboy:
Thx but my situation is using wireless tethering , just use the cable and problem solve ?
[Networking] DanGeorges:
Why not just use your PC's internet sharing over WiFi?
[Networking] LgGsm45:
I always wondered what it took to make this reverse tethering possible from PC to mobile device...NOW I KNOW!!! Awesome tutorial...thanks.
[Networking] anurag.dev1512:
Add one more command on Raring Ringtail[Ubuntu 13.04]

if u r using ubuntu 13.04 then first type ''sudo su'' command and then type the rest of the command given by the origional developer....

and enjoy
[Networking] Gladwin_Prince:
[MENTION=225651]op[/MENTION] it would be good to have a script containing these commands in it.

or probably an app that would itself execute these commands and tells you what you should do to get it working when a error occurs would be great
[Networking] atishey23:
Is the driver destination is same in Windows xp?

Bbm pin - 76661999;) fell free to invite
[Networking] |oGa[n].^^:
Detailed Explanation Needed

I am clear with step 1. Need explanation for step 2 onwards. Am using windows xp.
[Networking] anurag.dev1512:
dud i can explain every step for ubuntu... if u want then ask for it..
[Networking] myworld122:
Doesn't work with S4... :(
[Networking] Cookie Ninja:
Don't be a noob! Stop quoting the entire OP to say you're stuck at step2.....

Dead Cookies leave no trails...
[Networking] sis651:
I tryed the steps on Ubuntu 13.10 and I can ping between my phone to PC and vice versa. Also I can use Skype too. But no other application can use the connection. Disabled Ubuntu firewall too.
[Networking] Bobloblaw2020:
I didn't get a dropdown list either but it worked anyway. I do have to enable usb debugging before connecting the cable, otherwise it will enter mass storage mode. I'm running cyanogenmod 4.1.2 on a Samsung T679.

Update: Not working with Groove IP, which was one of my main objectives :( Facebook is not working well either.
[Networking] raikkoni27:
all good till step 2 on windows 8. can't get any command to run on terminal emulator except su step 3 onwards :(

i'm on galaxy nexus gsm. can someone help on this one? thanks :)
[Networking] turquazman:
how can I do same for my windows CE (gps) tablet?

I have a gps tablet runing on Win ce core 6.0

I can connect it to my computer (desktop XP running) by a USB cable.

I want to connect internet with my tablet by using USB cable connection to desktop (or laptop).

How can I do it?
[Networking] rydraj:
If the 3G connection is reset, I have to re enable it and run the command before the USB connection is used.

ifconfig rmnet0 0.0.0.0

Any solutions for this ??
[Networking] kurwan:
Thanks a ton for this method, it wasn't without difficulties, but I manage to browse the internet with my nexus 5, I think I have encounter most of the problems posted here, at the end I have to change my mobile network mode to 2g (3g doesn't seem to stay) instead of LTE. And I didn't activate wifi.

Still I can't connect to google play, as soon as I change network mode to 3g I lose access to internet.
[Networking] alokm:
Might be DNS

I think I am in your situation too. I can ping public IPs. So it must be a DNS configuration issue. I am looking at how to configure it.
[Networking] ifarmer:
working just fine, but for windows 7 to many steps to building up the connection. pls automate
[Networking] ifarmer:
on debian box works, but still does not work on windows 7 machine, i cant see the option of usb in dropbox .....

maybe sombody tips to work properly
[Networking] anurag.dev1512:
....

can u tell me which ip address is assigned to android phone on reverse tethering....
[Networking] ZaiduPaidu:
Disguise USB reverse tether as Wifi for all apps...and then?

Hello,

I am in a situation here. I have LAN at office and wifi (wlan0) at home. I use USB reverse tethering with AndroidTool on PC and USBtunnel on android and browsing works fine, coz, i guess AndroidTool does the same steps as mentioned in this thread but through ADB shell. So, its ok. Now, I want to disguise my USB connection as WiFi (wlan0) for which I will have to execute the command ifconfig wlan0 0.0.0.0. I get that too. My phone will think (WiFi adaptor is just ON but not connected to a network) that it is my Home WiFi (wlan0). OK, till here. But, my question is, once I unplug the USB cable and stop using reverse tethering and go back to my home, will I be able to connect to my Home Wifi. Do I have to revoke the ifconfig command?If yes, what is the method? Or, is it not necessary? Please enlighten!
[Networking] Flyview:
No, it will reconfigure itself. The most you may have to do is disable and reenable WiFi.
[Networking] awskier08:
Doesn't seem to work with s4.

Anyone get it to work with an s4?
[Networking] p1000haha:
when PC use static IP and DNS, there is a problem of domain
[Networking] deeepc:
unable to acces internet on smausng GS3

hi

nice tutorial

but dnt know why i am not able to acces internet on my sam GS3

the PC part is goin fine but when i enter commaned in terminal emulator after that nothing happens even after reboot of mobile

attaching here the screen shots of emulator log

kindly guide me if i am doin anything wrong in all procedure

thx in advance

deeepc
[Networking] lluyd:
Thanks for this awesome tutorial :good::good::good:
[Networking] smit.sanghavi:
Never quote the 1st post. NEVER. :)
[Networking] deeepc:
any solution for my query sir?
[Networking] anurag.dev1512:
do in super user mode...

put the commands of emulator in linux terminal after doing sudo su....
[Networking] zombiezoom:
Thank you so much for this! you literally saved my life :D
[Networking] Cyboy:
Really really awesome training! Im going check it out tonight, hope it work.

Thank u jus the same!
[Networking] prabster:
Hi all,

Tried all the steps (and the contingency ones, too) but for some reason, I can't get my Note 2 to connect. IDK what's missing, so I've taken the liberty of attaching screenshots of steps 2 and 3 (my terminal). Here's to hoping someone can point me to the right direction. TIA! :)
[Networking] bracha:
I have a similar problem...

Same here... I am using a PC with Win7 and a Smartphone ALPS GT-H9500 running Android Version: 4.2.1. All commands seem to be working fine, but no Internet Access is available on my phone. My PC is connected via ADSL.

If you (or anyone else) has been able to figure out how to fix this, I would really appreciate hearing how.

Thanks,

Bracha.
[Networking] anly11:
almost everything went ok, i got internet connection established. i can use connectivity from my linux PC to my kitkat android, but i can not get google play working well. when i try download app i get "waiting for network" so i apply command ifconfig pdp0 0.0.0.0 and now i stuck on "downloading" in google play. maybe it is because i am using new 4.4.2 android system? any idea?
[Networking] rtrotsky:
after all this, it seems only whatsapp works for me. i got no connection on chrome, play store or any other application. i have windows 7 x64 and a samsung i9300
[Networking] prachetas13:
It would be Local Area connection 3 try it
[Networking] :
I can't download data from play store using this trick .....only browsing.....any suggestions ?
[Networking] donjoe0:
Pretty much the same guide but only for Linux PCs, no ADB required, no phone restart required, a bit clearer(?) explanation of the steps: http://xdaforums.com/showthread.php?t=2211363
[Networking] Zehlek:
At work as soon as I turn on USB tethering the internet dies.
[Networking] mycodeforweb:
USB Reverse Tethering Without Rooting or install any app

USB Reverse Tethering can be done without rooting your phone or install any app in your phone.

In android USB Tether facility is there.

You can choose them while you connected to your windows computer and you can enjoy your computer internet to your android mobile:

youtu.be/4bLY1Bh97TU

Thank you

---------- Post added at 01:03 PM ---------- Previous post was at 12:57 PM ----------

You can done Reverse tethering without rooting your phone and without install any app.

Use USB internet in your wireless network setting while connect your mobile to PC with USB.

youtu.be/4bLY1Bh97TU

Thank you

mycodeforweb
[Networking] abhinitagrawal:
not working on Note II N7100 with 4.3 but was working with 4.1.2

plz help
[Networking] .:Death_Angel:.:
Where is this --> "Allow other network users to connect through..." ?

Here's a screenshot : i.imgur.com/vBF9k3X.jpg
[Networking] Pecan-fan:
Absolutely excellent!

Today before start work I was wondering if I could use the Internet access of my laptop in my android device via the usb cable. I did a Google search and I found this page. It is exactly what I was thinking and the best part of it: no apps to install, nothing complicated to, simple as life should be. I had never heard of Reverse Tethering. I just thought a situation an voila, it is possible. It is impressive how often this happens to me I think on something I could do with android and almost always that something is possible. Thank you OP for this extremely useful guide. It didn't work for me the first time, only after a reboot of my phone, but it worked. As happened with other guys some applications have partial access (browse but no direct download) but it is already something.
[Networking] ankostis:
reverse-tether & wifi-hotspot

If i understand what you are asking, I have managed to do a similar setup (but not the VPN part): Windows7 host with VirtualBox & Linux VM <--usb--> Android+WifiHotspot <--> laptop

And the laptop can access the network of the PC.

You can check instructions at: http://xdaforums.com/showpost.php?p=50236807&postcount=9
[Networking] Kiran D:
Alternate way

Here He is asking to bring your phone in the network of Windows System i.e. in the network of 192.168.137.0. Alternatively to reduce the commands to be entered you may try alternate way i.e.

(Tested on Windows 8)

1) Connect your Phone to Windows system using USB.

2) Turn on USB Tethering on your phone (Assuming appropriate drivers are installed on your system for "Mobile USB Remote NDIS Network")

3) Share the Internet connection of your Computer System with the Mobile USB remote NDIS network.

3) By default Android device gets IP 192.168.42.1. Here you may assign static IP to your "Mobile USB remote NDIS network adapter" in your computer as 192.168.42.2.

4) Open Terminal Emulator on your android device. Go to superuser mode using "su" command & add the default gateway using below command.

route add default gw 192.168.42.2 dev rndis0 (Assuming that the name for usb interface inside Android is rndis0)

Note:- I have Tried this on my Samsung device & worked successfully. Please do it only if you are technical person & understand what you are doing exactly with your system & android device.
[Networking] Pecan-fan:
Working for browse and download

I combined the instructions in this thread with instructions of this another thread and I could get it to work in Windows 7 with both browse and download working for Play Store.
[Networking] metropical:
unable to connect my Mac

OSX Lion.

When I get to the Term Em steps on th HTC One:

netcfg rndis0 dhcp

I get "failed (no such device)"

or

busybox ifconfig

I get "sh: busybox: not found"

if I try this entry to Term Em on the HTC One:

ifconfig rndis0 10.42.0.2 netmask 255.255.255.0

route add default gw 10.42.0.1 dev rndis0

I can't get it all in before the line runs out and sends back this prompt

<

any help here?
[Networking] InfiniteRecall:
How can I get this to work on a wifi-only tablet (Sony Xperia Tablet Z) that doesn't have tether settings at all? They're not even disabled. They just don't exist.
[Networking] Pecan-fan:
Your question is offtopic.

To share your notebook's internet connection via wifi, look for a program that enables a wifi hotspot on your computer. Then access normally from your tablet as you would with any other hotspot.

Sent from my LG P350 with xda-developers app.
[Networking] Mariner_1712:
I keep trying to follow the instructions, but after two hours of digging I think the problem is that Verizon's firmware refuses to allow usb tethering even after usb debugging is enabled.

Is there a way to bypass this in the terminal? All I want to do is use my laptop's wifi on campus, as their routers do NOT play nice with my phone in certain buildings. It's not like I want to somehow cheat Verizon out the phone I ****ing paid for.
[Networking] Flyview:
The automatic dhcp method stopped working for me on 4.4.2 (Kitkat).

The following works (on windows):

ifconfig rndis0 192.168.137.2 netmask 255.255.255.0

route add default gw 192.168.137.1 dev rndis0

ifconfig wlan0 0.0.0.0

The last line tricks the WLAN to think it has an active connection so all apps get internet access. You could do the same for 3g but I forget what you would have to use. You just have to connect to any WLAN (doesn't matter if it actually works).
[Networking] xdossd:
ping works but not browsing

Hi, I'm using Ubuntu 13.10 and cm-10.2.1 on my s4mini, followed the tutorial -- everything worked so far -- on the first page and can ping my phone from my PC and vice versa. But I can not browse :( Anyone can help?
[Networking] donjoe0:
Well, all that seems to be missing from the instructions on the first page of this thread that might lead to that kind of problem (ping works both ways but no browsing) is this command for your Android device:

setprop net.dns1 8.8.8.8

This tells your Android to talk to one of Google's Domain Name Servers (namely 8.8.8.8) to find out what IP address your browser is trying to reach when it asks for a domain name (your device can't really communicate directly with something called, say, "xda-developers.com" but needs that translated into an IP address like 184.172.3.199 and only the DNS can do that; you need to tell your Android what DNS to use to get such translations working).
[Networking] xdossd:
I tried entering only the IP first and browsing, and with executing setprop net.dns1 8.8.8.8 but unfortunately neither worked :\
[Networking] MaRsHaL.Afg:
very useful
[Networking] 4dayrally:
thank u

awesome tutorial............. thank you
[Networking] adi1818:
Best Tutorial 100% working!!!

Thank you for this tutorial it is working on my samsung GT-S6312.
[Networking] xdossd:
So anyone here with s4mini, cm-10.2 and working USB Reverse Tethering?

So anyone here with s4mini, cm-10.2 and working USB Reverse Tethering?
[Networking] mariuszpud:
Thanks for this tutorial!!!
[Networking] hiratafabio:
Thanks for the tutorial. Worked like a charm on my Xperia S.

At first the automatic dhcp method didn't work, so I went manual and it connected.
[Networking] lutzen1:
Thank you for this tutorial!
[Networking] epic_legend:
Thanx alot
[Networking] DigitalCocaine:
Wow, awesome guide and thanks a lot :good:
[Networking] zeshan94:
thank you . it worked.

device-samsung galaxy young duos s6312 android 4.1.2

pc-windows hp x64
[Networking] qstar.inc:
Works well!

Connected my Android 4.1.2 (SAMSUNG GT-I8262) with Windows 8.1

Windows 7 system work! But I had to reboot my phone after unplugging USB, then reconnected and it connected!