I wanted to develop on Android and I needed adb access from a GitHub codespace (for some pretty random stuff) and I hadn't found a way to share the local adb server / local ip / local usb connection.
As I'm using vscode, I tried to share a port from here but forwarded ports are only server to local (I didn't found a way to do a local to server)
I also searched on internet but no solution was proposed...
I mention How to set up ADB for remote machine development and local device deployment because it is an interesting answer but I don't want to open a non-secure port.