If anything makes its way here, it means that I have scratched my head for hours to find the correct keywords to search for these.
These are assuming you have done port forwarding correctly. On local networks, no port forwarding is necessary.
(Yes, I have wasted hours playing around with netsh
with its netsh interface portproxy add v4tov4
)
adb -a -P 5038 nodaemon server start
adb -a nodaemon server start
adb nodaemon server start
adb start-server
Don't ask me why. But from my experiments, you cannot connect remotely if you are using adb start-server
. From what I've seen in netstat
via netstat -an | find "5037"
, seems like adb start-server
will only bind the listening address to 127.0.0.1, thus preventing remote connection.
adb -H <host-address> <command>
# Example:
adb -H 10.0.0.1 devices
Big thanks to https://www.paincker.com/adb-remote/. I would've never known about starting an adb server this way without that blog.
Funny thing, when I want to archive the page, turns out someone else already beaten me to it by a few years. I'm not the only one scratching my head with this thing.