This had been working fine for me all the while, now all of a sudden I find this change in behaviour with no change in android or my wondows(I haven't updated either)
This is how I establish wireless connection over tcpip
adb -d tcpip 5571
adb connect 192.168.68.110:5571
Now after this adb devices
when usb is kep plugged outputs:
List of devices attached
ZY223SVNKZ device
192.168.68.110:5571 device
when I uplug the usb it used to output:
List of devices attached
192.168.68.110:5571 device
But all of a sudden it's now outputing blank after unplugging:
List of devices attached
I have read Listening for an Ethernet Cable Unplugging Event for a TCP Server Application
But it doesnt answer my question. I have established connection via adb
so looking for an adb based solution as well. I have also gone through
- TCP Server disconnect/cable unplugged
- Listening for an Ethernet Cable Unplugging Event for a TCP Server Application
- Instantly detect client disconnection from server socket
- Detecting TCP Client Disconnect
None of these answers my question. So please don't blindly close it refereing any of these. I need a adb
based solution or some sorts of android settings which can solve it.