08-26 11:21:25.214 3887 1201 I ADBAutoEnable: Web API: Discovering ADB port...
08-26 11:21:25.216 3887 1201 I ADBAutoEnable: Looking for mDNS service on device IP: 192.168.100.102
08-26 11:21:25.218 3887 941 I ADBAutoEnable: mDNS discovery started for _adb-tls-connect._tcp
08-26 11:21:25.260 3887 941 I ADBAutoEnable: Service found: adb-000028B44672218D-VJCxzp
08-26 11:21:25.261 3887 941 I ADBAutoEnable: Service found: adb-0000AC1794DB803E-effefL
08-26 11:21:25.263 3887 941 I ADBAutoEnable: Host: 192.168.100.102, Port: 40179
08-26 11:21:25.263 3887 941 I ADBAutoEnable: Found matching device with IP: 192.168.100.102, Port: 40179
08-26 11:21:25.264 3887 941 I ADBAutoEnable: Host: 192.168.100.15, Port: 44595
08-26 11:21:25.264 3887 941 W ADBAutoEnable: Skipping device with IP 192.168.100.15 (looking for 192.168.100.102)
08-26 11:21:25.273 3887 941 I ADBAutoEnable: Service found: adb-0000AC17944B79AB-dScTCK
08-26 11:21:25.275 3887 941 I ADBAutoEnable: Host: 192.168.100.16, Port: 36785
08-26 11:21:25.275 3887 941 W ADBAutoEnable: Skipping device with IP 192.168.100.16 (looking for 192.168.100.102)
08-26 11:21:25.307 3887 941 I ADBAutoEnable: Service found: adb-0000AC17944B79F2-oUYk0a
08-26 11:21:25.309 3887 941 I ADBAutoEnable: Host: 192.168.100.18, Port: 38005
08-26 11:21:25.309 3887 941 W ADBAutoEnable: Skipping device with IP 192.168.100.18 (looking for 192.168.100.102)
08-26 11:21:25.353 3887 941 I ADBAutoEnable: Service found: adb-0000AC1794DB7F1B-EHCfUb
08-26 11:21:25.355 3887 941 I ADBAutoEnable: Host: 192.168.100.14, Port: 40953
08-26 11:21:25.355 3887 941 W ADBAutoEnable: Skipping device with IP 192.168.100.14 (looking for 192.168.100.102)
08-26 11:21:27.586 3887 941 I ADBAutoEnable: Service found: adb-0000AC1794DB7F10-Z5vcWR
08-26 11:21:27.588 3887 941 I ADBAutoEnable: Host: 192.168.100.13, Port: 32859
08-26 11:21:27.588 3887 941 W ADBAutoEnable: Skipping device with IP 192.168.100.13 (looking for 192.168.100.102)
08-26 11:21:28.869 3887 1067 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:28.885 3887 1067 D ADBAutoEnable: handleStatus() completed
08-26 11:21:29.723 3887 941 I ADBAutoEnable: Service found: adb-0000AC17944B7916-avfLgp
08-26 11:21:29.725 3887 941 I ADBAutoEnable: Host: 192.168.100.19, Port: 38413
08-26 11:21:29.725 3887 941 W ADBAutoEnable: Skipping device with IP 192.168.100.19 (looking for 192.168.100.102)
08-26 11:21:30.232 3887 1067 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:30.247 3887 1067 D ADBAutoEnable: handleStatus() completed
08-26 11:21:33.869 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:33.883 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:21:35.216 3887 1201 E ADBAutoEnable: mDNS discovery timed out after 10 seconds
08-26 11:21:35.218 3887 1201 I ADBAutoEnable: Web API: Found ADB on port 40179, switching to target port 5555...
08-26 11:21:35.218 3887 1201 I ADBAutoEnable: switchToPort: Starting with host=127.0.0.1, port=40179, targetPort=5555
08-26 11:21:35.218 3887 1201 I ADBAutoEnable: SimpleAdbManager constructor starting
08-26 11:21:35.218 3887 941 I ADBAutoEnable: Discovery stopped: _adb-tls-connect._tcp
08-26 11:21:35.219 3887 1201 I ADBAutoEnable: Key files: /data/user/0/com.tpn.adbautoenable/files/adb_key
08-26 11:21:35.219 3887 1201 I ADBAutoEnable: Loading or generating key pair
08-26 11:21:35.219 3887 1201 I ADBAutoEnable: Loading existing key pair and certificate
08-26 11:21:35.220 3887 1201 I ADBAutoEnable: Private key loaded
08-26 11:21:35.221 3887 1201 I ADBAutoEnable: Public key loaded
08-26 11:21:35.222 3887 1201 I ADBAutoEnable: Certificate loaded
08-26 11:21:35.222 3887 1201 I ADBAutoEnable: SimpleAdbManager initialized successfully
08-26 11:21:35.222 3887 1201 I ADBAutoEnable: switchToPort: Calling connect(127.0.0.1:40179)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: switchToPort: Failed to switch to port 5555
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: java.io.IOException: Connection failed
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at io.github.muntashirakon.adb.AdbConnection.waitForConnection(AdbConnection.java:507)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at io.github.muntashirakon.adb.AdbConnection.connect(AdbConnection.java:450)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at io.github.muntashirakon.adb.AbsAdbConnectionManager.connect(AbsAdbConnectionManager.java:217)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at com.tpn.adbautoenable.AdbHelper.switchToPort(AdbHelper.java:172)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at com.tpn.adbautoenable.WebServer.lambda$handleSwitch$3$com-tpn-adbautoenable-WebServer(WebServer.java:380)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at com.tpn.adbautoenable.WebServer$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
08-26 11:21:35.279 3887 1201 E ADBAutoEnable: at java.lang.Thread.run(Thread.java:1012)
08-26 11:21:35.280 3887 1201 I ADBAutoEnable: Web API: Switch failed via loopback, retrying via 192.168.100.102...
08-26 11:21:35.281 3887 1201 I ADBAutoEnable: switchToPort: Starting with host=192.168.100.102, port=40179, targetPort=5555
08-26 11:21:35.281 3887 1201 I ADBAutoEnable: SimpleAdbManager constructor starting
08-26 11:21:35.281 3887 1201 I ADBAutoEnable: Key files: /data/user/0/com.tpn.adbautoenable/files/adb_key
08-26 11:21:35.281 3887 1201 I ADBAutoEnable: Loading or generating key pair
08-26 11:21:35.281 3887 1201 I ADBAutoEnable: Loading existing key pair and certificate
08-26 11:21:35.283 3887 1201 I ADBAutoEnable: Private key loaded
08-26 11:21:35.284 3887 1201 I ADBAutoEnable: Public key loaded
08-26 11:21:35.285 3887 1201 I ADBAutoEnable: Certificate loaded
08-26 11:21:35.285 3887 1201 I ADBAutoEnable: SimpleAdbManager initialized successfully
08-26 11:21:35.285 3887 1201 I ADBAutoEnable: switchToPort: Calling connect(192.168.100.102:40179)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: switchToPort: Failed to switch to port 5555
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: java.io.IOException: Connection failed
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at io.github.muntashirakon.adb.AdbConnection.waitForConnection(AdbConnection.java:507)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at io.github.muntashirakon.adb.AdbConnection.connect(AdbConnection.java:450)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at io.github.muntashirakon.adb.AbsAdbConnectionManager.connect(AbsAdbConnectionManager.java:217)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at com.tpn.adbautoenable.AdbHelper.switchToPort(AdbHelper.java:172)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at com.tpn.adbautoenable.WebServer.lambda$handleSwitch$3$com-tpn-adbautoenable-WebServer(WebServer.java:383)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at com.tpn.adbautoenable.WebServer$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
08-26 11:21:35.344 3887 1201 E ADBAutoEnable: at java.lang.Thread.run(Thread.java:1012)
08-26 11:21:35.345 3887 1201 E ADBAutoEnable: Web API: Failed to switch to port 5555
08-26 11:21:38.967 3887 1424 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:38.982 3887 1424 D ADBAutoEnable: handleStatus() completed
08-26 11:21:43.870 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:43.884 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:21:48.870 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:48.884 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:21:53.917 3887 1481 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:53.933 3887 1481 D ADBAutoEnable: handleStatus() completed
08-26 11:21:58.903 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:21:58.916 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:22:03.871 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:22:03.884 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:22:08.899 3887 1755 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:22:08.916 3887 1755 D ADBAutoEnable: handleStatus() completed
08-26 11:22:13.926 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:22:13.941 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:22:18.870 3887 1286 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:22:18.887 3887 1286 D ADBAutoEnable: handleStatus() completed
08-26 11:22:23.926 3887 2093 D ADBAutoEnable: handleStatus() called - checking status
08-26 11:22:23.945 3887 2093 D ADBAutoEnable: handleStatus() completed
Doing
adb -s 192.168.100.102:40179 tcpip 5555manually work. The switch port button resulted to the following log.