Last Updated on February 7, 2025 by pg@petergamma.org
This methods works also over ethernet cable:
with this adapter:

with the sequence
- connect your Android phone over usb-c to your Ubuntu PC
- adb tcpip 5555
- remove the usb cable
- add the usb-c ethernet cable
- attach the usb-c cable to the usb-c ethernet adapter to power the phone
- adb connect 192.168.1.101:5555
- scrcpy
when the connection is lost, type:
- adb tcpip 5555
- adb connect 192.168.1.101:5555
- scrcpy
Important that you keep the usb connection to your PC next to the ethernet connection. But you must switch off your VPN, if you have one. Else you cannot reconnect.
And with the above adapter:
- ethernet works
- scrcpy over ethernet works
- micro SD card works and it is possible to read write to the SD card which is plugged into the adapter
- charging over usb-c works with the indicated adapter