My Samsung phone uses LineageOS. The LineageOS USB modes include RNDIS (Microsoft's widely used Ethernet over USB protocol) and its settings also include tethering over USB.
My desktop is Windows 10 with a wired Intel NIC and the correct drivers for Samsung USB, Samsung+Microsoft RNDIS, and ADB.
I'm hoping to connect the phone in such a way that it:
- acts as an IPv4 DHCP client device
- gets an IP from the router
- can be connected to using TCP/IP from my PC, like any other LAN device.
Most questions seem to be about the reverse connection (using the phone's connection to bridge a device to the internet) or about tunneling with adb
, neither of which are applicable here.
I've got as far as getting Windows to automatically install its RNDIS device/driver when I switch the phone to RNDIS mode, but can't get further. I'm having difficulty finding a way to get this working, and not a lot of documentation about definitive instructions for the process.
If successful, most of my use will probably be SSH from the desktop using sshd
on the phone (including SCP which runs over SSH), and perhaps at a later stage, a Samba server on the phone as well (anything but MTP!)
But first I need a working LAN over USB connection, which means directions for both the phone end and the Windows end. I would rather do things natively than with extra packages, if its easy.