I keep getting the Can\'t bind to local XXXX for debugger message in console, but not for 1 port, for all random ports. I have done what\'s stated in this question,
Can\'t bind to local XXXX for debugger
Open platform-tools in cmd and run these two commands
C:\Users\SH-PC-W8.1-3\AppData\Local\Android\Sdk\platform-tools
adb kill-server adb start-server
This works perfectly.
Note: choose your platform-tools location