简体   繁体   中英

How to connect to a webserver hosted on vmplayer guest os?

I am running a webserver (eg: tomcat7) in vmplayer guest, with NAT and I am able to view the webserver from guest using it's hostname:port but host browser is unable to connect to this webserver. Any idea? Is there any specific network configuration that needs to be done for host to connect to guest?

Note: I used ifconfig and got ip address from eth8, but ping request times out all the time.

VMWARE player network settings screenshot

在此处输入图片说明

Update I also had to add entries in both machines hosts file for DNS

Change the network settings to use Bridged. That will connect to your router and get an IP off DHCP which your Host will be able to see. NAT is using your host address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM