Access a service (such as http) in the vmwarevm over the Internet. If the host is a port ing hidden in windowx NAT, it indicates the environment and use the VMnet8 network connection, set up a linux WEB server in the virtual machine to use the default port 80 of the WEB, with the IP address 192.168.11.10. The real host Windows XP system has two IP addresses, the intranet connection 192.168.11.1, and the Internet IP address 172.18.136.220. Other computers on the Internet can access the WEB in Linux by accessing my real host 221.196.193.220. The principle of www.2cto.com is described first. Because the WEB Service uses port 80, the http service is enabled on Linux, and port 80 is automatically opened because Linux uses an intranet ip address (192.168.11.10 ), the Internet cannot access this address to find my web service, but I can access my XP system through the Internet address (172.18.136.220). XP can connect to Linux again, so it is possible to map 80 to my Winxp system! First, set the network to NAT. The procedure is as follows: select the settings option under the Vm menu: In the pop-up dialog box, select Network Adapter to set the Network to NAT. Now, the actual operation is to open the Vm and select on the menu bar, edit -- VPC Settings -- NAT tab. For example, select VMnet8 to Edit the Settings. The following page is displayed: www.2cto.com, and click Add port ing on the NAT Settings page. For example, the NAT port ing configuration is used here. For example, we want to add the WEB Service ing to port 80 of the linux Virtual Machine. Because the WEB is a TCP connection, the translation is performed in TCP, click Add (Add) host port and fill in the real host port to be converted. Here we find a port that is not used by the host to enable port 900. The Virtual Machine http service port is port 80, so enter 80 on the virtual machine port. For example, after confirming, your friend can enter http://221.196.193.220 : 900/access the WEB service in linux on your virtual machine. Access the http service www.2cto.com in the vmwarevm. Note: You may be unable to access the services in the VM due to a problem. Run the following command to check whether the port is opened on the host port: telnet is followed by the Host IP address and port number. If the following interface appears, it indicates that the port has been opened:
The passage of the author