First check if your VM is running or not. In my case it was auto shutdown after some time.When I was trying to connect that machine, was getting the error.