unable to connect to socket connection refused code example
Example: cannot connect to daemon at tcp:5037: Connection refused
ps aux | grep 5037
kill -9 <pid of process of your incorrectly running adb>
#then
adb devices
ps aux | grep 5037
kill -9 <pid of process of your incorrectly running adb>
#then
adb devices