Eclipse Error: "Failed to connect to remote VM"

Viewed 279423

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?

26 Answers

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?

Are you connected to a VPN?

Uninstall and install again ADT android plugin.

NOTE: For glassfish Server login via admin console -> Configurations -> server-config -> JVM-settings. * Remember to check Enable checkbox for Debug. Now Note the address, this address will be used in port of eclipse Remote Java Application Debug.Check the snap shot in glassfish server here

Related