This question is an exact duplicate of:
- adb connection by wifi getting killed when a new USB attached/detached 1 answer
I was trying to run ADB over wifi following answers provided here, and I connect successfully to the device, but I lose connection after disconnecting the USB. The same result with both manual and plugins ways. Also, I have tried this solution, and this one, but without success.
Solutions that require the device is rooted won't work for me.