I can connect to my smartphone with ADB using a usb cable, I'm also able to connect over tcp/ip to the same smartphone with adb connect 192.168.1.110 while the usb cable is still connected.
But, as soon as I disconnect the cable, I loose the tcp/ip connection, the device appears to be "offline" (as result to "adb devices" command) and I cannot reconnect over network until I re-connect the cable.
My steps are (this way it works) :
- connect the usb cable
- adb kill-server
- adb tcpip 5555
- adb connect 192.168.1.110 (here it connects succesfully!)
- disconnect usb cable => I loose network connection to the smartphone
If after step 3 I disconnect the cable, the step 4 doesn't work (port 5555 closed)
It seems like adbd daemon is running ONLY when the cable is connected.
AS my device is not rooted I don't find any way to force adbd daemon to start without connecting the usb cable.
Any idea?
[UPDATE] I just tried to scan the smartphone for tcp port opened and I found that as soon as I run the command: adb tcpip 5555 the scanning found the port 5555 opened but as soon as I disconnect the usb cable, I run again the scan and the port 5555 is found to be closed This confirm that as soon as I disconnect the usb cable don't know why but adb stop responding on port 5555 or the daemon itself get killed or similar
[UPDATE] I just did the same steps on another Android device (an asus tablet) and it works perfectly, when I disconnect the cable, the tcp port remain opened, so the issue is not with the steps I'm following but with something else
[UPDATE] I found other posts with similar issue, this is one of them: adb connection by wifi getting killed when a new USB attached/detached , unfortunately I cannot do what he says as my smartphone is not rooted and I'm am in the same situation of comment by Osama in that post