We assume that this virtual machine uses NAT, and the IP address registration is 192.168.23.128.
First open Manage Virtual Networks from the Start menu:
Allows access to VMware Virtual Machine (NAT) from another computer Picture 1
Click the NAT tab, then click Edit . You will see the NAT Settings dialog :
Allows access to VMware Virtual Machine (NAT) from another computer Picture 2
Click the Port Forwarding button, and you will see the following dialog:
Allows access to VMware Virtual Machine (NAT) from another computer Picture 3
You should now see a screen that we really need. We will use port 8080 on the host. Enter the IP address for the Ubuntu virtual machine, and port 80. This port may be any port.
Allows access to VMware Virtual Machine (NAT) from another computer Picture 4
We can test it by going to http:/// localhost: 8080 on the real computer. Alternatively, replace localhost with the IP address of the real computer.