I want to show you how to make VMware Workstation Host Only Network Connection. The VMware Workstation Host Only Network Connection is quite different to other infrastructures. And in the Host Only connection, they only communicate amongst themselves virtual machines.
VMware Workstation Host Only Network Connection
VMware Workstation Host Only Network Connection
One logic in the VMware Workstation Host Only Network connection is only to communicate amongst themselves virtual machines having Host Only network connection.
If you assume that two virtual machines are installed on VMware Workstation, these virtual machines will only be able to communicate with each other if Host Only is selected in the Network Adapter settings of these two virtual machines. They will not be able to access your Internet or physical network. This topic is the beginner of the VMware Workstation basics.
Let’s take a look step by step to VMware Workstation Host Only connection.
Virtual Network Editor Default Settings
It’s available the virtual network default settings in the following image.
Considering the default settings, we see that VMnet1 is selected as Host Only. Now let’s open VMware Workstation. We already set up two virtual machines with Windows 8.1 x64 operating system as shown below. For the virtual machines called Client1 and Client2, Network Adapter is selected as Host Only in the Devices section.
The final state of our virtual machine named Client1 is as shown below.
The final state of our virtual machine named Client2 is as shown below.
As you see, our two virtual machines have the same settings. Now let’s run the virtual machines and see what Ip addresses they have.
VMware Workstation Host Only Ip Address
The IP address that Client1 virtual machine received;
The IP address that Client2 virtual machine received;
As you see, Client1 and Client2 virtual machines received an IP address via DHCP from the IP block specified by default in the Virtual Network Editor program. Client1 has the IP address 192.168.209.130, whereas Client2 has the IP address 192.168.209.129 if it is the virtual machine. Ip addresses from the Ip block specified in the VMware virtual network default setting are correctly received.
We had told that virtual machines can communicate only among themselves in the VMware Workstation host only network connection. After virtual machines correctly received the IP addresses, now let’s test with the ping command to communicate with each other if we want to do a little test.
Let’s ping from Client1 to Client2
Let’s ping from Client2 to Client1
This process will be faulty.
Because Windows Firewall will be the obstacle. In such cases, we first need to look at the Windows Firewall settings. If you change a small setting in the firewall settings in the Client1 and Client2 virtual machines, you will see that the ping process is successful. In Client2 firewall setting, I turn on the setting which prevents pinging.
Then, you can ping between virtual machines. Let’s see whether the operation is successful or not.
Click on the Control Panel on your desktop, then click Windows Firewall in Control Panel.
In the Firewall window, click Allow an application or feature to bypass the Windows Firewall.
Since we do not have administrator rights in the opened window, we press the Change Settings button.
After you activate the passive settings, you will see the File and Printer Sharing option when you scrolling down. Here you will see that the Private tab is selected, but the Common tab is not selected.
After you select the common section, press OK.
By coming to the Client1 virtual machine, and when we ping the Client2 virtual machine from the command prompt through the ping command, you can see that the packages go successfully.
When you ping to the Client2 virtual machine from the Client1 virtual machine, you can see that the packages go in the same way successfully if you select the common tab in the firewall settings for the Client2 virtual machine with the file and printer sharing option selected.
VMware Workstation Host Only Physical Network Test
Client1 can not access our virtual machine to a physical network. The reason is due to the VMware Host network. Virtual machines set to Host Only can not access the physical network. The Client1 virtual machine fails as shown in the physical machine ping operation with the IP address 192.168.1.254.
Likewise, the Client2 virtual machine also can not access the physical network.
VMware Workstation Host Only Internet Test
In the VMware Host network connection, virtual machines can not access the physical network and logically can not also access the Internet.
If you try to access the google internet page in a browser opened in the Client1 virtual machine interface, you will not receive any response.
Likewise, the Client2 virtual machine will also fail in this case.
We have examined in detail the topic called the VMware Workstation Host Only network connection. In the VMware Host Network connection, virtual machines can not access the Internet. Because they can communicate amongst themselves. And, they only can communicate the virtual machines having VMware Workstation Nat configuration or VM Bridged configuration. That is why it is different from VMware NAT connection.