1, the virtual machine mode is provided a NAT
Edit System Files
After modifying the corresponding parameters, save to restart the service
IP address of the computer network is provided
Do not set the ip with the same virtual machine, just in the same network segment
After saving, use xshell connection
ps: can ping each other's ip address in the machine and the virtual machine, you can ping