2015年12月9日 星期三

ADB in Linux: cannot bind 'tcp:5037'

Problem: 
   ./adb start-server
   * daemon not running. starting it now on port 5037 *
   cannot bind 'tcp:5037'
   ADB server didn't ACK
   * failed to start daemon *
 
Solution #1:
   Kill processes using port 5037
      netstat -ap|grep "5037"
      kill -p 
 
Solution #2:
   strace ./adb start-server
   ...
   socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
   connect(3, {sa_family=AF_INET, sin_port=htons(5037),
   sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ETIMEDOUT (Connection timed out) 
   ==> ifconfig lo up
 
 

沒有留言: