Cannot connect to virtual machine?

How to solve issue:

The virtual machine generates a different IP address than the default address 192.168.2.100. Checkout virtual machine, how to obtain a virtual controller IP address.

Or check out Connection problem while switching between virtual machine and controller.