Android-to-Android USB-Tethering - Android Q&A, Help & Troubleshooting

Hi all,
For some time now I've been working on Android-to-Android Tethering, which seems to be pretty difficult without 3rd party apps and/or HW peripherals (such as USB-to-Ethernet converters).
I've been working with a Rooted Samsung Tab Active 2 running Android 7.1.1 and several internet-connected devices: Samsung S8, Samsung S7 and also another Tab Active 2. All devices come with RNDIS support and have "Ethernet configuration" under connection settings.
I managed to get it to work using "EasyTether" with a client app and a server app. BUT, first, I don't like and don't want an app that controls all my networking data. Second, I don't understand how come we haven't yet done it with native Android configurations.
I tried connecting two device via USB cable using a standard USB-C to USB-A to OTG converter to Type-C (or micro-USB-B with the S7).
On the host device (the one with the OTG connector) I enabled USB tethering, but nothing happened. Tried pinging devices, but no dice. still, both devices recognize a connected USB-device and I can see their details using a USB-Diagnostics app.
Tried turning on Rndis as the USB setting - On some cases both Rndis interfaces up and running, with IP addresses, subnets and routes configured, but nothing. Not even a ping between devices. On other cases Rndis would be DOWN, but setting "ifconfig rndis0 up" would do nothing without printing any error.
I believe now that the Rndis drivers present in an Android phone or Tablet contain only the part of the client, while the host part of the driver exists on PCs.
I would appreciate some help with this.
Thanks,
Shedaim

Hi, sorry to reviwe old thread. But did you get anywhere with this? I am looking for a ethernet tether. I got the following adapter https://www.kjell.com/se/produkter/dator/mac-tillbehor/plexgear-multiadapter-for-usb-c-p61629 That worked great meaning it could power the phone at the same time as working as a usb and ethernet adapter. Internet to the phone with cable no problem. The phone (samsung A8) detects the adapter as a eth0. BUT there is no function to "tether with ethernet".... This is super strange that it has not been built in. Have googled it for ages but cant find anything.

Related

[Q] Connect a SGT via WIRE to a PC (e.g. serial connection/ethernet?)

I have the job to use a Galaxy Tab 10.1 as a presentation device during an exibition and want to connect it to a controller PC (running Win7) via wire connecton. Previously I used WIFI, which works fine in the lab but fails completely! with 1000 people running around each of which having a device of their own and WIFI enabled.
How can I connect the SGT to the PC to send and receive some small amount of control data (receive touch screen events on the PC and send some control data to the tab)? As far as I know there is no ethernet available via the connector and the USB option would only work if I would use logcat and parse the strings, but I have no idea how to send data back to the tab.
Under /dev there are a few serial devices but I could not find a Samsung connector having a serial plug (which would be enough to solve my problem).
I hope some of you might have an idea how I can solve this problem.
-Udo
I kept on searching and found this solution (haven't tried it out yet).
http://www.anothem.net/archives/2010/10/15/android-usb-connection-to-pc/
Seems promising, even though I would like to send UDP pakets rather than using TCP and dealing with the required overhead (OK -- it's not that bad).
Also, in the past ADB seems to be rather unstable at times and my solution has to be as stable as possible because I have to run unobserved for up to 10 hours.
I keep on searching (and will also monitoring this thread, in case someone here might have a different idea).
-Udo

Question: USB Wifi - how do you get it to work (plz I need exact steps and links thx)

Question: USB Wifi - how do you get it to work??
=================================================
I just tried the newest Android RemixOS as of Jan 25 2017. I read some of what you all have here and I was very impressed with your knowledge, however I have no idea what some of this stuff means even though I can regedit.exe and toss code around in C# and VB.NET and use Framework like a boss. Meaning, if I had the exact steps to fix my problem that would be GREAT!
* My problem, I only have a USB Wifi, my USB keboard and mouse work fine but RemixOS Marshmello will not work together. It just shows the Wifi off and when I click the toggle button to turn it on it just scans. Advanced under Wifi has nothing I can work with.
I heard that the problem -used- to be that USB was not supported at all but my keyboard and mouse work. So is there anything I can do to make the USB Wifi work, I have no internal Wifi for this computer -or- is that the best solution, just get an internal Wifi board that supports 2.4Ghz (which I read somewhere was the other problem, only 2.4Ghz is supported). Also I have no access to my Landlords Wifi so I am unable to play around with it.
Follow up Question: What is rooting and why is it better and why doesn't RemixOS just make everything rooted (since it sounds better and everyone wants RemixOs this way)? Rooted sounds to me like its, "written in stone" but it sounds like it makes it so people can get access to things?
** I already installed RemixOS Jan 2017 version if I have to Root do I uninstall RemixOS first, if so how do you install it from your PC if it made your system into a dual boot?
** Or do you all mean uninstall RemixOS then edit the ISO and put the mentioned code for init() into the init.sh file? is that the Trick?
*** Additionally for anyone that doesn't understand what I said above cuz I am sure I am clear as Mud on my questions. My Wifi is a stick, that is attached to a USB cord that then goes into the Back of my computer into a USB 3.0 port. I have no internal Wifi board and the motherboard is 6 years old and doesn't have much integreated into it except sound, maybe grafx VGA but I installed a RX 780 for a good graphics card.
*** I also forgot to mention it dual boots just fine, just no internet. Thx!
same here, im using TL-WN723N_V3 and wifi always keep searching.
helppp
here the pic
winpoincom/cara-dual-boot-windows-dan-android-melalui-remix-os/
insert . before com
Generally, wifi adapter connected using USB should work. It maybe a problem with particular adapter type not having driver in kernel or something like that. You can check output of "dmesg" command if it says something about the adapter. For example I'm using quite cheap usb wifi adapter Tenda (W311U+) and it works directly without any intervention.
pakarem said:
Generally, wifi adapter connected using USB should work. It maybe a problem with particular adapter type not having driver in kernel or something like that. You can check output of "dmesg" command if it says something about the adapter. For example I'm using quite cheap usb wifi adapter Tenda (W311U+) and it works directly without any intervention.
Click to expand...
Click to collapse
here my dmesg,

OTG Ethernet weirdness (ping works one way)

Device Info: Motorola Moto X Play, stock Marshmallow ROM (rooted)
Hiya!
I've been fiddling with this problem for a few days and even after lots of googling I have not found a solution.
I have a Plugable USB OTG Ethernet adapter based on the ASIX AX88772A chipset which works fine when connected to a router, as in I can use it as a main data connection.
When I connect it directly to the ethernet port on my laptop is when things start to break down.
Since there is no default network control for ethernet I drop down to a terminal on the phone and manually bring up eth0 and on my laptop set it's address appropriately.
Ping works fine from Android->Laptop provided I specify the interface to use ("ping -I eth0"), however the laptop cannot ping the Android at all and will just time out.
I've tried multiple IP configurations and even completely cleared out iptables just in case but my laptop is still just not receiving ICMP echo replies from the Android.
Does anyone have any ideas as to why it's doing this?
My end goal is to have my laptop tethered via ethernet to my phone and because it's an old laptop (iBook G3) this is one of the few options that doesn't require a tonne of extra pieces.
Thank you

USB Tethering between android devices

Hi,
I've been trying for some time to share an internet connection between an android phone (tried with several phones) and an android Tablet (Samsung Active Tab 2).
Rooted the tablet (after some very long research) and tried the following methods:
1. Connect two devices with OTG connector, turned on RNDIS and configured both rndis0 interfaces to be on the same network (different IP addresses ofc) - no ping, nor udp messages (using a UDP Sender\Receiver app) go through.
2. Tried creating a VPN server on the host device (the one providing internet) which creates a tun0 interface that listens to the rndis0 interface - Could not connect to server.
3. Used "Easy Tether Lite" on both devices and managed to share internet, but limited to the Lite version which allowed the use of HTTP only - This shows that it can actually be done using only a USB cable and OTG adapter.
Would appreciate some help with this matter.
Thank you all,
EDIT: Was thinking this may be done using a different Ethernet interface instead of RNDIS. Any ideas?
Shedaim said:
Hi,
I've been trying for some time to share an internet connection between an android phone (tried with several phones) and an android Tablet (Samsung Active Tab 2).
Rooted the tablet (after some very long research) and tried the following methods:
1. Connect two devices with OTG connector, turned on RNDIS and configured both rndis0 interfaces to be on the same network (different IP addresses ofc) - no ping, nor udp messages (using a UDP Sender\Receiver app) go through.
2. Tried creating a VPN server on the host device (the one providing internet) which creates a tun0 interface that listens to the rndis0 interface - Could not connect to server.
3. Used "Easy Tether Lite" on both devices and managed to share internet, but limited to the Lite version which allowed the use of HTTP only - This shows that it can actually be done using only a USB cable and OTG adapter.
Would appreciate some help with this matter.
Thank you all,
EDIT: Was thinking this may be done using a different Ethernet interface instead of RNDIS. Any ideas?
Click to expand...
Click to collapse
hello,
I'm facing the same situation. I had the idea that option 1 should be easy but not.
The phone detect the tablet device and let me to activate the function "USB tethering" but nothing change on the tablet, impossible to navigate or ping.

Question Does USB tethering to a Mac computer works without additional drivers?

Dear community,
Can anyone owning both, a Galaxy S23 Ultra and a Mac (with an up to date MacOS), verify if the USB hotspot tethering function works "out of the box"? This can be done by connecting both devices using a USB C cable and enabling "USB tethering" on the S23 settings. If the S23 appears with a green "Active" note under the Network settings of the Mac computer, then it works
Thanks!
Background: Most Android devices, including the previous generation Galaxy S22 Ultra, only had support for the RNDIS protocol. This protocol is not supported by MacOS. Thus, using USB tethering required a complicated installation of the unofficial old HoRNDIS driver on the Mac. The new S23 may or may not incorporate additional protocols which are supported by the MacOS.

Categories

Resources