Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb cannot bind 'tcp:5037'

Tags:

android

adb

It used to work fine, but today after I connected my Android phone to my machine, and run adb devices, I got the following error:

* daemon not running. starting it now on port 5037 *
cannot bind 'tcp:5037': Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon: Operation timed out

How to solve this problem? (I am using a MacBook)

like image 853
Leem.fin Avatar asked Jan 18 '16 09:01

Leem.fin


2 Answers

Try with following commands

Find port details by List Open Files lsof command.

sudo lsof -i :5037 and find PID and kill it.

kill -9 <pid here>

Example: kill -9 4363

Then start adb server. adb devices command.

like image 119
Arshid KV Avatar answered Oct 08 '22 01:10

Arshid KV


Kill the Adb server and restart.

adb kill-server
adb start-server

enter image description here

like image 30
Parinda Rajapaksha Avatar answered Oct 08 '22 00:10

Parinda Rajapaksha