Preface
I need to use my own laptop to open the virtual machine service, how can I use my desktop computer for service access?
environment:
Desktop: Windows 10
Laptop: Windows 10
The network is a hotspot opened by the laptop, under the same LAN
text
First of all, we need to look at the virtual machine IP we need. Currently, my virtual machine IP is: 192.168.XXX.XXX, and then I use my network card
Open our virtual network editor
Then make settings changes using change settings
r
Click on Nat settings
Add a host mapping port, and then the virtual machine will use this network card, here is V8. Friendly reminder: It is best to choose a port after 1024, so as to avoid port occupation.
Select this advanced setting and click on
Click this push rule
New rule
Select the port and click Next
Enter port 2222, the port just mapped on the virtual machine
Select Allow the connection and click Next
Give it a name description. What I entered here is: Virtual Machine SSH Mapping
Target machine, ping its own gateway
Then you can link with Xshell