ADB cannot bind ' tcp:5037 ' adb server didn ' t ACK

Source: Internet
Author: User
Tags ack

When we use several different sources of ADB in the system, it is particularly easy to come up with the error described in the title:

ADB server is an out of date.  

The reason for this error is that the port that our ADB is bound to is occupied by other services, or that there are multiple services that occupy 5037 of ports, which prevents each other from working properly.

To confirm the above guess, you can use the following command:

[Email protected]:~$ adb nodaemon servercannot bind ' tcp:5037 '

The following is a look at those services that take up 5037 ports, find those services, and kill them using the KILL command.

To view port usage status, use the Netstart command:

To view the service ports that are already connected:

Netstart-a
View all services, using:

Netstart-ap

When used, it can be used with the grep command. For example, we want to see the service for Port 5037, so:

Netstat-ap|grep "5037"
Enter as follows:

(Not all processes can be detected, all non-user process information will not be displayed, if you want to see all the information, you must switch to the root user) TCP        0      0 localhost:5037          *:*                     LISTEN      25255/ADB       TCP        0      0 localhost:51695         localhost:5037          established 23836/adb       TCP        0      0 localhost:5037          localhost:51695         established 25255/ADB       
As we can see, there are multiple ADB services that take up 5037 ports and cause them to not work properly. Use the KILL command to kill all ADB processes and re-use ADB start-server to restart ADB.

[Email protected]:~/tools/adt-bundle-linux-x86_64-20140702/sdk/tools$ kill 23836[email protected]:~/tools/ Adt-bundle-linux-x86_64-20140702/sdk/tools$ Kill 25255

The above is the Ubuntu System processing method, window similar.


ADB cannot bind ' tcp:5037 ' adb server didn ' t ACK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.