error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Usually each socket address (protocol/network address/port) is only allowed once. (10048)
When I started Android studio today, I suddenly encountered a situation where the above problem of the device display could not be detected. Cause of the problem: Port 5037 is occupied
C:\Users\He Liting>adb kill-server
C:\Users\He Liting>adb nodaemon server
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Usually each socket address (protocol/network address/port) is only allowed to be used once. (10048)
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
C:\Users\何丽婷>netstat -ano | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6500
TCP 127.0.0.1:5037 127.0.0.1:56252 ESTABLISHED 6500
TCP 127.0.0.1:56218 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56252 127.0.0.1:5037 ESTABLISHED 6068
TCP 127.0.0.1:56254 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56255 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56256 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56257 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56259 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56260 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56261 127.0.0.1:5037 TIME_WAIT 0
TCP 127.0.0.1:56262 127.0.0.1:5037 TIME_WAIT 0
C:\Users\何丽婷>adb kill 6500
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as F:\adt-bundle-windows-x64\android-sdk-windows\platform-tools\adb.exe
C:\Users\何丽婷>tasklist|findstr "6500"
360MobileLink.exe 6500 Console 1 45,760 K
C:\Users\何丽婷>adb kill 360MobileLink.exe
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as F:\adt-bundle-windows-x64\android-sdk-windows\platform-tools\adb.exe