Skip to content

Instantly share code, notes, and snippets.

@jokamjohn
Last active February 14, 2018 10:58
Show Gist options
  • Save jokamjohn/fd40ab2d71dc77c06736d0c20352a6d5 to your computer and use it in GitHub Desktop.
Save jokamjohn/fd40ab2d71dc77c06736d0c20352a6d5 to your computer and use it in GitHub Desktop.
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address
E:\SDK\platform-tools>adb.exe start-server
^C
E:\SDK\platform-tools>adb nodaemon server
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)
E:\SDK\platform-tools>netstat -aon|findstr 5037
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9904
TCP 127.0.0.1:5037 127.0.0.1:49156 ESTABLISHED 9904
TCP 127.0.0.1:5037 127.0.0.1:49261 ESTABLISHED 9904
TCP 127.0.0.1:5037 127.0.0.1:65487 ESTABLISHED 9904
TCP 127.0.0.1:5037 127.0.0.1:65517 ESTABLISHED 9904
TCP 127.0.0.1:5037 127.0.0.1:65520 ESTABLISHED 9904
TCP 127.0.0.1:49156 127.0.0.1:5037 ESTABLISHED 13164
TCP 127.0.0.1:49261 127.0.0.1:5037 ESTABLISHED 4076
TCP 127.0.0.1:65487 127.0.0.1:5037 ESTABLISHED 12128
TCP 127.0.0.1:65517 127.0.0.1:5037 ESTABLISHED 12128
TCP 127.0.0.1:65520 127.0.0.1:5037 ESTABLISHED 10308
E:\SDK\platform-tools>tasklist|findstr 9904
adb.exe 9904 Console 2 8,112 K
E:\SDK\platform-tools>taskkill /f /t /im adb.exe
SUCCESS: The process with PID 2160 (child process of PID 10308) has been terminated.
SUCCESS: The process with PID 11324 (child process of PID 13164) has been terminated.
SUCCESS: The process with PID 116 (child process of PID 4076) has been terminated.
SUCCESS: The process with PID 9904 (child process of PID 1912) has been terminated.
SUCCESS: The process with PID 10308 (child process of PID 11528) has been terminated.
SUCCESS: The process with PID 13164 (child process of PID 11528) has been terminated.
SUCCESS: The process with PID 4076 (child process of PID 11528) has been terminated.
E:\SDK\platform-tools>adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
01H806X662602452 device
E:\SDK\platform-tools>adb devices
List of devices attached
01H806X662602452 device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment