Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB server not running

When I run ADB and type in "adb start-server" it says

*daemon not running. starting it now on port 5037 *
could not read ok from ADB Server, error = 109
*failed to start daemon *
error: cannot connect to daemon

what should I do? I've tried killing the server and restarting the pc but nothing seems to work. my pc recognizes the phone and the adb process only appears briefly when i try to start the server. also, it gets stuck on wating for device when i type "fastboot oem unlock"

like image 443
William A. Noble Avatar asked Nov 16 '14 00:11

William A. Noble


1 Answers

Looks like windows is messing up the ports (reserving them). I have the same issue with docker containers and this worked for me:

Run this in the command line (as administrator)

net stop winnat
adb.exe start-server
net start winnat
like image 155
Speedy Avatar answered Oct 29 '22 05:10

Speedy