title: Eclipse when launching in debug mode show Cannot connect to VM error
body: <p>Eclipse is showing Cannot connect to VM error while i opened any Program in debug mode..
  Here is Exception stack</p>
  
  <pre><code> java.net.SocketException: socket closed
      at java.net.PlainSocketImpl.socketAccept(Native Method)  //I dont know which socket is closed in my PC
      at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
      at java.net.ServerSocket.implAccept(ServerSocket.java:453)
      at java.net.ServerSocket.accept(ServerSocket.java:421)
      at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:95)
      at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)
      at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135)
      at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107)
      at java.lang.Thread.run(Thread.java:619)
  </code></pre>
  
  <p>Even my Localhost is working fine,i pinged 127.0.01 and localhost both is working fine,Even i restarted my PC even getting the same error. dont know which socket is closed in my PC.Kindly help me..I am using eclipse 8.x</p>