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/in IE to 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:
Note: Do not forget to enable the firewall.