How to connect from a VMware guest machine to a server installed on a Windows 7 host machine?

How to connect from a guest (virtual) VMware machine to a server installed on the machine (physical)? Things like entering "localhost" in the address bar of a browser on a guest machine do not work. My OS is a 64-bit version of Windows 7 with a WMW workstation installed on it, if that matters.

EDIT: The bridge network connection in conjunction with the link to 192.168.0.10 * from the guest machine really worked (replace * with a digit, starting from 0 until it ends).

+6
source share
4 answers

If you use a Bridged network connection (see the "Virtual Machine Settings: Network Adapter" section), your virtual machine will be assigned an IP address on the same local network as your host computer. At this point, you can simply HTTP to your host IP, for example. http://192.168.0.100

You can also do this with other parameters, but with NAT and Host-only (if I remember correctly) your host computer will appear on your guest computer to have a different IP address than its real LAN address. Thus, Bridged is the easiest and most likely your best choice if you do not have specific needs.

+8
source

The first thing to do: check that your network is running. Try ping the host system or any website from the guest OS console, say ping www.google.com .

If you get answers, try writing down the IP address of the host machine in the address bar of the browser on the guest machine (NOT localhost: P). You should see that any web service is running (Tip. Open your windows 7 console and enter ipconfig , then find the ethernet adapter matching VMWare and you will find the IP number of your host system).

If you didnโ€™t get any response at all when you ping , then check VMWareโ€™s network configuration for Bridged Connection โ€” at least the way it works for me.

Good luck

+1
source

In a guest machine, localhost refers to the virtual machine itself. Address the host in the same way as any other machine: by its IP address.

Please note that he can use a second โ€œvirtualโ€ network adapter to communicate with the guest. Check VMware to find and find the second IP address.

0
source

Just use the same IP network for your VMware machine if your Windows system has a class of IP addresses C 192.168.0.10. Thus, assign the 192.168.0.120 IP address to your Vmware machine and make sure that the firewall allows traffic to vmware and also adds a listener port manually in the vm machine. go to the system - administrative port firwal-add 1521.

thanks

0
source

Source: https://habr.com/ru/post/909693/


All Articles