Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't bind to local 86XX for debugger

For some reason eclipse DDMS always gives the error 'Can't bind to local 86XX for debugger' every time I try and debug my app. This just started today for some reason.

I have looked at many posts and tried what they have suggested such as: 1. Adding 127.0.0.1 localhost to the hosts file and moving ::1 2. stopping and restarting adb 3. Under Window -> Preferences -> Android -> DDMS: Set Base local debugger port to "8601" Checked the box that says "Use ADBHOST" and set the value to "127.0.0.1"

I have also restarted the computer, updated Android platform tools and the eclipse plugin, Downloaded the latest adt-bundle and started the eclipse that is bundled with that.

I have ran netstat -anob and only javaw and adb use ports 8600+.

Does anyone have any ideas what I can try now?

like image 220
sam Avatar asked Dec 20 '22 13:12

sam


2 Answers

If you are using Linux, I recommend you as well to run this command:

fuser -k 8600/tcp

With this command you will kill any process running at the 8600 TCP port (The one Android is using to debug).

like image 65
zapotec Avatar answered Jan 02 '23 21:01

zapotec


I had same problem and none of given solutions worked. Then I have uninstalled all JRE 7 and installed latest JRE 6 (http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html). It have immediately fixed the problem.

like image 43
KreCi Avatar answered Jan 02 '23 22:01

KreCi