Unable to open debug port: java.net.socketexception “Connection refused” - Android Studio

By : Jacob
Source: Stackoverflow.com

This error occur while attaching debugger to process.

I've checked solutions from similar issue with "Socket closed" and it does not fix this.

After this runnig app with debugger attached returns:

Error running Android Debugger (port): Unable to open debugger port : java.net.SocketException "Connection reset" 

Any ideas ?

Android Studio v1+
Linux x64
By : Jacob


Check your firewall settings, open this port Close any other tools or windows that may be connecting to the device, i.e. chrome inspect window, another eclipse, etc..

This video can help you solving your question :)
By: admin