Check whether the network can ping the teacher network
See if the gateways of the teacher and student machines are the same, and whether they are in the same LAN
Check whether the firewalls of the student and teacher machines are closed. If the firewall is not closed, it may cause the connection to be lost.
(If you try the above questions, it doesn't work) Check whether the virtual network is enabled. If the virtual network is enabled, the virtual network will be disabled. Disable method: find the network at the beginning of the VM in the network and click Disable