title: Remote Debugging Eclipse : Failed to connect to remote VM
body: <p>I am trying to debug an application remotely.
  While configuring i am giving Standard(<strong>Socket Attach</strong>) Connection type.</p>
  
  <p>After when I debug it I got following exception.</p>
  
  <pre><code>com.sun.jdi.connect.spi.ClosedConnectionException
  at org.eclipse.jdi.internal.connect.SocketTransportService.readHandshake(SocketTransportService.java:209)
  at org.eclipse.jdi.internal.connect.SocketTransportService.access$7(SocketTransportService.java:201)
  at org.eclipse.jdi.internal.connect.SocketTransportService$3.run(SocketTransportService.java:172)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>What can be the possible reason of it?</p>