-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I finally figured out how to get android to connect to my host device (this app repo) without headache.
Steps:
adb needs to be installed with this tool (and I hope to emulate it so that it is not needed, later)
this should happen automagically w/ user consent
android debug (adb) should be enabled on android device (hopefully this can be automated later on too)
when android device is connected (in my case USB, though this should work for other methods)
run adb reverse tcp:10209 tcp:10209 - this forwards traffic from android device to the host (where this app repo is supposed to run)
after that, this repo can accept connections from any TCP traffic from 10209 port on android device
It is likely I'll try to use UDP as a primary, that way we're not trying to do TCP over TCP, which is just bad..
TCP over TCP will be a good fallback if UDP is screwy, though.
Cannot wait to get a minimum viable product up! Hopefully I've got something this week.
MVP android app will just be Termux running this repo in service mode, and desktop running this repo in request mode.