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)
asked Jan 18, 2016 at 9:00
3
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.
answered Apr 6, 2018 at 9:23
![]()
Arshid KVArshid KV
9,5313 gold badges34 silver badges36 bronze badges
Kill the Adb server and restart.
adb kill-server
adb start-server

answered Oct 17, 2017 at 10:35
![]()
1
I managed to solve this problem on MacBook by first running the following command to list the process which is using port 5037
lsof -n -i4TCP:5037 | grep LISTEN
Then, I kill it:
kill -9 <PID>
Then, adb devices works!
Gerard
2,8123 gold badges26 silver badges39 bronze badges
answered Jan 18, 2016 at 9:23
Leem.finLeem.fin
40.5k81 gold badges200 silver badges351 bronze badges
0
- Android Studio Terminal
$ adb devices
List of devices attached
adb server is out of date. killing...
cannot bind 'tcp:5037': Address already in use
ADB server didn't ACK
* failed to start daemon *
error:
error:
- OS Terminal
$ adb devices
List of devices attached
adb server is out of date. killing...
* daemon started successfully *
- Finally test again at the IDE terminal
$ adb devices
List of devices attached
GL
answered Feb 22, 2020 at 19:11
Braian CoronelBraian Coronel
21.9k4 gold badges56 silver badges60 bronze badges
it is clear that Address already in use. busybox netstat -antp to check who is using the port.
answered Jan 18, 2016 at 9:09
Jiang YDJiang YD
3,1951 gold badge14 silver badges20 bronze badges
3
I’ve fixed the problem by updating the Android SDK.
android update sdk --no-ui
Additionally, I’ve updated the Platform Tools to the newest version.
If this doesn’t work, redownload android sdk.
-
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz -
tar -xvf android-sdk_r24.2-linux.tgz cd android-sdk-linux/tools -
install all sdk packages
-
./android update sdk --no-ui
answered May 3, 2017 at 7:01
![]()
I tried it at the OS Terminal, worked.
Try on the OS terminal first
answered May 2, 2020 at 13:30
Running the following command at the OS bash helped solve the issue:
sudo adb start-server
answered Nov 2, 2021 at 14:47
![]()
Taiyr BegeyevTaiyr Begeyev
5371 gold badge9 silver badges12 bronze badges
I ran adb kill command and then it started working fine
adb kill-server
adb start-server
answered Aug 30, 2017 at 10:09
![]()
Tushar SahaTushar Saha
1,95824 silver badges29 bronze badges
Hi I am new to android I am not able to run adb.exe it gives me below error:
==>adb start-server
adb I 6108 5748 adb.cpp:219] Android Debug Bridge version 1.0.32
adb I 6108 5748 adb.cpp:219] Revision 09a0d98bebce-android
adb I 6108 5748 adb.cpp:219]
adb I 6108 5748 adb_client.cpp:126] _adb_connect: host:version
adb I 6108 5748 sysdeps_win32.cpp:742] could not connect to tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)
adb I 6108 5748 adb_client.cpp:175] adb_connect: service host:start-server
* daemon not running. starting it now on port 5037 *
Cannot open 'nul': The system cannot find the file specified. (2)
* failed to start daemon *
error: cannot connect to daemon
What does this error exactly mean..?
Cannot open 'nul': The system cannot find the file specified. (2)
What is this error..?
asked Dec 17, 2015 at 6:28
JDevJDev
1711 gold badge1 silver badge4 bronze badges
5
make sure you have installing your device driver and adb service
and is activated USB debugging in android device -> setting -> developer options
and must be could to see your device when you connected by USB port ( by this command : adb devices)
so when you connected by USB follow this Commands :
1-stay connect via USB
2-connect to your WIFI network (computer and mobile device both)
3-ping DeviceIP (must be have ping to your device)
4- adb kill-server
5-adb usb
6-adb tcpip 5556
7-adb connect "yourDeviceIP:5556"
8-adb devices (must be see two device names , one of them is by deviceIP:5556)
9-unplug USB cable
then it’s Done! and you could to test your app
answered Dec 25, 2016 at 12:20
![]()
java acmjava acm
1,02012 silver badges24 bronze badges
I had faced the same issue and it was because of the antivirus that was not not allowing to connect with my device. So, I deleted the adb.exe from platform-tools and pasted it again.
[Please store the adb.exe before deleting]
After doing this, I got a pop-up from my antivirus software asking if it can allow devices to connect. On clicking OK, I got the authentication key from the device. On checking it, I was able to connect successfully.
![]()
Dharman♦
30.5k22 gold badges84 silver badges133 bronze badges
answered Aug 26, 2020 at 7:16
make sure that your real device is on developer mode. I am using Poco M2 Pro and I had enabled it before around 15 day. But today it suddenly turned off developer mode.
answered Sep 2, 2022 at 5:26
![]()
it seems your adb is listening in tcpip mode for connecting over wifi..kill the server using adb kill-server..start it again using adb usb
Else also try l-> Go to task manager and kill adb process. ..
answered Dec 17, 2015 at 6:35
![]()
rupesh jainrupesh jain
3,4101 gold badge14 silver badges22 bronze badges
6
adb.exe might be corrupted , try to replace these files
ADB.exe
AdbWinApi.dll
AdbWinUsbApi.dll
from the latest SDK Platform-Tools for Windows
![]()
Alex P.
30.2k17 gold badges118 silver badges169 bronze badges
answered Jan 16, 2017 at 22:16
android – Daemon not running. Starting it now on port 5037
Reference link: http://www.programering.com/a/MTNyUDMwATA.html
Steps I followed
1) Execute the command adb nodaemon server in command prompt
Output at command prompt will be: The following error occurred cannot bind tcp:5037
The original ADB server port binding failed
2) Enter the following command query which using port 5037
netstat -ano | findstr 5037
The following information will be prompted on command prompt: TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9288
3) View the task manager, close all adb.exe
4) Restart eclipse or other IDE
The above steps worked for me.
This worked for me:
Open task manager (of your OS) and kill adb.exe process. Now start adb again, now adb should start normally.
android – Daemon not running. Starting it now on port 5037
Related posts on android :
- android – AlertDialog setButton was deprecated
- android – Programmatically Restart a React Native App
- android – What does adb forward tcp:8080 tcp:8080 command do?
- android – File.createTempFile() VS new File()
- Kotlin-allopen for android
- How to import Action Bar Sherlock? android studio
- animation – Android – how to get android.R.anim.slide_in_right
- android – Set notifyDataSetChanged() on Recyclerview adapter
- adb – Android: adbd cannot run as root in production builds
мой adb не может подключать устройства.
Я запускаю « adb start-server»
ulucudeMacBook-Pro:~ ulucu$ adb start-server
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
Затем запустите « lsof -i tcp: 5037»
ulucudeMacBook-Pro:~ ulucu$ lsof -i tcp:5037
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
adb 2308 ulucu 7u IPv4 0x440443a862048a7b 0t0 TCP localhost:5037 (LISTEN)
Но когда я запускаю adb kill-server «
ulucudeMacBook-Pro:~ ulucu$ adb kill-server
* server not running *
или запустите adb devices «или» adb shell «
List of devices attached
* daemon not running. starting it now at tcp:5037 *
adb E 03-31 09:30:26 2350 95705 usb_osx.cpp:333] Could not open interface: e00002c5
adb E 03-31 09:30:26 2350 95705 usb_osx.cpp:294] Could not find device interface
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
Работает adb,
Никаких других процессов, использующих порт «5037»,
Никакой другой симулятор, подобный «genymotion»
Моя система — Mac 10.12.14,
Моя версия adb 1.0.39.
В чем проблема?
31 март 2017, в 04:30
Поделиться
Источник
4 ответа
Если вы обновили до Platform Tools 25.0.4 (вы можете проверить запуск андроида из командной строки), и он не работает
Просто загрузите предыдущую стабильную версию, например: https://dl.google.com/android/repository/platform-tools_r25.0.2-macosx.zip
Затем перейдите в свой домашний каталог Android SDK и замените папку инструментов платформы загруженным.
Тогда do:
ps aux | grep 5037
kill -9 <pid of process of your incorrectly running adb>
И идите
adb devices
vbevans94
18 апр. 2017, в 08:58
Поделиться
Я не могу поверить, что они полностью удаляют автономный sdk, они заставляют вас устанавливать новейшие платформы-инструменты, которые вызывают эту проблему, и вы не можете отказаться от sdkmanager. Какой позор.
В любом случае, просто обновите adb до версии 1.0.36, и он должен работать. В Интернете есть сотни таких проблем. Сад.
Sinapse
06 апр. 2017, в 06:31
Поделиться
Та же проблема здесь, на Ubuntu.
nils @nils-MS-7597: ~ $adb устройства
Список подключенных устройств
* daemon не работает. начиная его теперь на tcp: 5037 *
Ошибка: не удалось установить smartsocket-прослушиватель: адрес уже используется
Сервер ADB не ACK
* не удалось запустить демон *
Ошибка: невозможно подключиться к демону
В порт 5037 прослушивается только adb. Убийство не помогает.
Ранее обновлял sdk. Не знаю, может ли это быть причиной.
Но redownload android sdk решил это для меня:
скачать android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
установить все пакеты sdk
./android update sdk —no-ui
Nils Fett
05 апр. 2017, в 20:09
Поделиться
Исходя из этого потока, вы не можете подключиться, потому что адрес уже используется. Вы можете попробовать busybox netstat -antp проверить, кто использует порт. Здесь еще один труд, который может помочь:
Решите эту проблему на
MacBook, выполнив следующую команду для отображения процесса, использующего порт5037lsof -n -i4TCP:5037 | grep LISTENЗатем я убью его:
kill -9 <PID>Затем
adb devicesработает!
Надеюсь, это поможет!
abielita
31 март 2017, в 11:24
Поделиться
Ещё вопросы
- 0ошибки opencv при использовании с приложениями формы Windows
- 1Как анализировать различные XML-файлы с помощью SAX на Android?
- 1ConstraintLayout: анимация translationX для одновременного нажатия кнопки RadioButton и ImageView
- 0vector.push_back () intellisense error
- 0изменить свойство курсора с помощью JavaScript
- 0jquery fadein () вызывается после завершения всех транзакций функции jquery?
- 1Невозможно переопределить существующие значения dataframe при замене значений в столбцах (строках)
- 0Выбор элементов по «Shift + стрелка вверх»
- 1Идентификация таблицы в HTML
- 1VueJS передает все реквизиты дочернему компоненту
- 0Laravel Eloquent запрос сборки выберите минимальное значение
- 1Возможно непреднамеренное сравнение ссылок в C #
- 0Функция, которая возвращает массив, но также принимает функцию в качестве параметра
- 1Реструктуризация разбора результатов анализа многопоточного файла журнала
- 0Не могу понять, почему это не работает
- 1HTTP-обработчик без ответа
- 0Перемещение данных таблицы MySQL в новую таблицу по расписанию
- 0Сортировать массив по указанным идентификаторам?
- 1Рассчитать RA DEC / AZ EL точек Лагранжа, видимых с места на земле
- 0Mysql создать представление, связывающее две таблицы
- 0Twiiter Follow Button For Newsletter / Html email
- 0Проверка имени пользователя удаленной проверки JQuery
- 1Как разбить число на строки цифр?
- 0Поведение CodeIgniter, конструкторы и маршруты
- 0Правильное использование родительских свойств
- 1Почему я должен привести к интерфейсу?
- 1Storage Access Framework: сохранить права доступа к файлам после отзыва дерева разрешений
- 0SQL Получить два столбца с Да или Нет
- 1Как перебрать детей Firebase и добавить их ключи в список?
- 1«Org.json.JSONException: запрещенное числовое значение: NaN»
- 0Вызов Jquery из сервлета
- 1Java или Scala RFC5987
- 0Проблемы вычисления выражения постфикса с более чем двумя операндами
- 1Неверное значение константы с использованием переменной в качестве параметра
- 0getElementsByName какое имя?
- 1Проект Silverlight, ссылающийся на исключение PCL: не удалось загрузить файл или сборку ‘System.Xml.Serialization, версия = 2.0.5.0
- 1Найти совпадающее содержимое и длину массива в одном внутреннем свойстве
- 0Установка библиотеки JQuery
- 1xpath с индексом не работает как селектор
- 1Испытайте JavaScript для детей. Глава 6. Какой правильный ответ
- 0как сделать ссылку на изображение php открытой в новом окне
- 0Как использовать миллисекунды в сиквелизировании стандартного поля созданного на месте?
- 1Функция d3.queue.await не вызывается
- 0Значение столбца не отображается в сетке ng (ui)
- 0Беда с setlocale
- 0SQL-запрос, дающий противоречивые результаты
- 1Как объединить значения из групп в столбце в Python
- 0Как мне создать регулярное выражение, которое добавляет все мои селекторы стиля с идентификатором
- 1Как отключить будущие даты в calendarView [дубликаты]
- 0JQuery код функции each () выполняется, даже если в коллекции нет элементов
Note that the error says local:5037, not tcp:5037. ADB is actually trying to connect to an unix socket at /tmp/5037, which fails.
In my case this was because I ran adb as root before. Thus, the socket was owned by root, forbidding my user from removing it. Relevant excerpt from strace adb fork-server server:
socket(PF_LOCAL, SOCK_STREAM, 0) = 8
unlink("/tmp/5037") = -1 EPERM (Operation not permitted)
setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(8, {sa_family=AF_LOCAL, sun_path="/tmp/5037"}, 12) = -1 EADDRINUSE (Address already in use)
close(8) = 0
