Note: sometimes when we place the server on a virtual machine, we can only connect the local machine to the webpage. However, if you want other computers to access the server, you need to map the server to the VM. The implementation is as follows:
1. Choose VM> Edit> Virtual Network editor.
Note: The system here uses the NAT mode. The virtual network card is vmnet8.
2. Click Nat settings
3. Set ing
Iv. Test
Enter the IP address of the local host and the port number you set when accessing the external host.
For example, 10.8.160.32: 9999 // 10.8.160.32 indicates the IP address of the Local Machine and 9999 indicates the port number you just set.
In this case, the external machine can access the service of port 192.168.80.101: 9999 on your virtual machine in the form of 10.8.160.32: 8088. OK
External machine connection to the local Virtual Machine Server