While debugging on my ADT-1 unit, I often connect via the following command
adb connect 192.168.1.x:4321
and this usually works as expected. I noticed that, in some occasions, the connection fails because the
adb connect command adds an extra port suffix to the original address:
unable to connect to 192.168.1.7:4321:4321 // see the extra :4321?
Some additional info:
- Yes, the 4321 is mandatory for ADT-1 devices.
- Restarting the adb service does not do anything useful.
- Restarting the IDE (IDEA / Studio) doesn't seem to do the trick.
Does anyone know why this happens? Can it be avoided?