How to Access Virtual Machine from Local Network? You have a Windows computer installed with Hyper-v and can access it easily from the internet, however, you may not know how to access it over the network from a machine in your own network. Here is an example of accessing virtual machine from different PC connected in the same network.
A Virtual Machine (VM) can help you create a virtual platform where you can install different operating systems and perform various tasks. However, when you have a VM software installed, and if the VM has an operating system installed, it will not be connected to the local network by default.
If it is not connected to the local network, it cannot be accessed by that network. So to access a VM from the local network, you have to set up this manually. In this article, I will show you how you can connect VM to a local network so that that network can access it.
Here I am using the “VMware Workstation Pro 15.0” and a Windows 7 virtual machine. I have already installed and created the Windows 7 machine.
However, before launching the VMware software, you have to check your current network addresses, which you will need later. For this:
Now click “Power on this virtual machine” to open the virtual Windows 7. This OS will get an IP address by default, but it won’t be the same as the local network. To check:
It will show you all the network addresses, including IPv4. You will notice that these are not the same as your local network addresses.
At this point, if you run the command prompt and enter the command “ping (your default gateway address),” it will not respond because it is not yet connected to the local network.
After changing the network addresses, rerun the command and type the “ping” command like before to check. You will now get the response. If you use the “ipconfig” command, you will see that the network addresses are the same as the local address.
Accessing VM from Local Network
Now that you are connected to the local network, you can enter the virtual machine using the local network. In VMware,
Note that: I have shown how to change the network addresses for windows 7. It will vary for other operating systems, and you will have to adjust accordingly.