Open Strykar opened 2 years ago
What is the result of:
adb connect 192.168.1.11
?
$ adb connect 192.168.1.11
failed to connect to '192.168.1.11:5555': Connection refused
$ adb connect 192.168.1.11:41521
* daemon not running; starting now at tcp:5037
* daemon started successfully
failed to connect to 192.168.1.11:41521
FWIW, the port under Wireless ADB changes every time I back out of that menu, so tests were done while those options were displayed on the phone. How do I troubleshoot this?
Note that --tcpip
automates the TCP/IP connection with adb tcpip
and adb connect
, the method which is supported since forever and requires to initially connect the device over USB:
https://developer.android.com/studio/command-line/adb.html#wireless
Android 11 added another mechanism to avoid the initial connection over USB, but requires some pairing steps. These pairing steps are not automated by --tcpip
, so if you want to use that, you must manually pair your device first: https://developer.android.com/studio/command-line/adb.html#connect-to-a-device-over-wi-fi-android-11+
Just updated ethernally script which facilitates wireless mirroring https://github.com/fusionneur/ethernally
Let me know if you encounter any issue. Thank you
Environment
dependencies:
Describe the bug Unable to connect over TCP/IP, lan WIFI in this case
On errors, please provide the output of the console (and
adb logcat
if relevant).USB and Wireless debugging are both enabled - https://i.imgur.com/A3RqPPh.jpg