Hosting: Win10 Professional Edition
Virtual machines: VMware Pro
Virtual machine system: Ubuntu 16.04 LTS
Web server: Apache (XAMPP)
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/87/F7/wKiom1fk4fTSfRhUAACg5t-1TqI562.png-wh_500x0-wm_3 -wmp_4-s_4066184942.png "title=" virtual machine Set network connection Settings "alt=" Wkiom1fk4ftsfrhuaacg5t-1tqi562.png-wh_50 "/>
(the diagram selects the bridging mode, and the NAT mode is OK.) )
Ubuntu System ctrl+alt+t Open Terminal input ifconfig enter view IP
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/87/F7/wKiom1fk48KyHXdCAAGl3pohO6c145.png-wh_500x0-wm_3 -wmp_4-s_1576008960.png "title=" ifconfig query IP Address "alt=" wkiom1fk48kyhxdcaagl3poho6c145.png-wh_50 "/>
The Web server in the Ubuntu virtual machine can be accessed by entering IP in the browser address bar in the WIN10 system.
You can also access the Web server in Win10 in Ubuntu.
This article is from the "11236721" blog, please be sure to keep this source http://11246721.blog.51cto.com/11236721/1855870
How the host accesses a Web server in a virtual machine