Different ways to enter the phone may not be the same, I use a Nubian phone.
For reference here: Http://adbshell.com/commands/adb-connect
Use ADB:ADB connect
1. Open the developer mode in the phone settings: about Mobile---> Version number (multiple click version number)
2. Connect the computer via USB
3. Enter the CMD interface of the computer, enter: ADB devices, the device indicates that the phone is connected to the computer via USB successfully
4. If the previous step does not appear, you can restart via adb tcpip 5555来.
The restarting in TCP mode port:5555 appears to indicate a successful restart
5. Locate the IP address on the phone: set--about the phone--state information-->ip address
6. #连接手机 via ADB connect #.#.#. #.#.#. #是手机的ip地址, is not the third step of the mobile phone serial number
Appears: connected to #.#.#.#:5555, indicating successful connection
7. After removing the USB, enter the ADB devices again, the phone is still connected with the computer
Note: Make sure your phone and computer are in the same network segment.
End of ADB service: ADB kill-server
Start adb service: ADB start-server
with ADB shell dumpsys window w |findstr/|findstr name=, check the current phone's open app and activity
Connect to ADB via USB