devnull devnull - 3 months ago 11
Java Question

Eclipse Error: "Failed to connect to remote VM"

I’m getting the following error when I start Debug from the

Eclipse IDE
.


Message:
“Failed to connect to remote VM. Connection Refused”



What could be the reason?

Answer

Have you setup the remote VM to accept connections?

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=10000,suspend=n yourServer

Is there a firewall in the way?

Are you specifying the correct host / port?

Comments