ADB cannot connect to daemon

Abdullah Aimen
2 min readJan 20, 2020

--

About more than two years ago, Google has brought a new debugging tool that will facilitate the process and replace the old one (connecting over a cable) to be over WIFI. But some times when you start configuring your device to work over WIFI you discover issues like the below!

ADB server cannot connect to daemon

This error comes from being unable to restart the ADB-server or unable to kill all processes. Also, maybe due to the process id you are trying to preserve is being used by another process.

After a while of searching, I found out that I have to manually kill the ADB server and start it again from the SDK platform.

To do so, Navigate to the ADB location inside SDK, in my case ~\home\Android-SDK\platform-tools, then type the below command:

adb kill-server: this command will kill the daemon server and all its processes

adb start-server: this command will restart the daemon server again.

After that, you can follow the normal steps for connecting your device.

plugin your phone to the laptop and open the terminal or android terminal then follow the commands below:

adb devices

adb tcpip 5555

then, connect over the same network and get the IP address to connect over, then type

adb connect <ip address>:5555

Now you can execute ADB commands or use your favorite IDE for android development — wireless!

Hope this will work for you! if so, share and Clapp is appreciated ;)

--

--