When you used a real machine to debug a program, the following error occurred in Android Studio
[2016-11-12 10:37:36- devicemonitor] Adb connection Error: The remote host forced the shutdown of an existing connection. [2016-11-12 10:37:38-devicemonitor] Connection attempts:1
Find out why the problem occurred: this is caused by DDMS calling ADB. After a search, it was discovered that this is a limitation of the ADB in the Windows environment, which can also be said to be a bug. When the number of simultaneous processes running on the phone is greater than 64 o'clock, the ADB is thrown. The deeper reason is that the maximum number of handles supported by the Windows API WaitForMultipleObjects is maximum_wait_objects, or 64.
Solution:
Found the process is Adb.exe port is occupied, please open Task Manager (while holding down the Ctrl+alt+delete key), go to "process" option and click on the process to end the process
After that, reconnect is possible.
Android Real-Computer debugging--The remote host forced the shutdown of an existing connection.