Allow Remote Access to Hyper-V VM from LAN & Internet – Create External Switch

In this article I will explain how to make your Hyper-V virtual machines accessible from non-management host computers or other devices connected to your home of office network (LAN).

For that purpose you need to create an external virtual switch in Hyper-V Manager . And this is the article is actually about.

Internal Switch is a pre-installed virtual switch. It serves to connect a virtual machine to the management host machine and Internet.

External Virtual Switch serves to bridge the internal VM network to the real LAN so that other computers, servers, Android and iOS devices can access your Hyper-V machine. It is not pre-installed. You need to create it manually.

Part 1 – Create an External Virtual Switch

  1. Launch the Hyper-V Manager:
    launch Hyper-V Manager Windows 10
  2. Click on the Virtual Switch Manager link in the right pane:Virtual Switch Manager Hyper-V Manager
  3. In the left pane select New virtual network switch;
  4. In the right part of the window select External;
  5. Click Create Virtual Switch:create new virtual external switch Hyper-V
  6. First, give it a name that will be clear to you. For instance, External Switch.
  7. Now is the most important part of the work – select the proper real network adapter for switch to bridge to. I want my virtual machine to be bridged to my Wi-Fi adapter.
  8. Click OK to apply networking changes and Yes to confirm. The network and Internet connection on your management host will disrupt for a few seconds:configure new external switch for Hyper-V

Part 2 – Select the External Switch in the VM Properties

  1. In the Hyper-V Manager right-click the virtual machine and select SettingsHyper-V Virtual Machine settings
  2. In the left pane select Network Adapter.
  3. In the Virtual switch on the right select the external switch you created in the previous step.
  4. Click OK to save VM settings: change network switch in network adapter settings Hyper-V VM

Checking the results

Now we can start our VM, let it boot up, obtain the IP-address from our router’s DHCP server and begin checking from another (non-management!) PC connected to our local area network.

First, I would like to open the network shared folder:

samba access Server 2019

Then, let us connect to the Hyper-V VM via Remote Desktop:

testing RDP connection to Hyper-V VM

Everything’s working fine!

Important! Be advised, that you can also set up a port forwarding rule on your gateway (for instance, a wireless router) to access your virtual machine remotely from any place on the planet.

Wrapping Up

Today we discussed a rather important topic. And hopefully now you will be able to set up a remote access to any VM in a few seconds. In such a way you can create as many virtual Remote Desktop or file servers as you wish on your host machine.

If you have any questions, ask them in the comments section. I will try to help. Good luck in using Hyper-V on Windows 10 or Server.

5 comments

  1. I am trying to achieve this but no success.
    When connecting from LAN (another PC or hyper-v host too) I get response always from host IIS, not from client…. do you have any hint why request is not forwarded to virtual client?
    Internet connection from client works without problems…
    Thx

    1. Frankly, I don’t know why this happens. Maybe, something is wrong (or different) in your Ethernet card driver…

  2. Hello, I’ve made a config like you. I can ping from my guest to other machines in my network. But… I can’t get that the guest and the host communicate each with other one! Any suggestion or advice?

  3. Thank you for the tutorial. This is what happens when I created a virtual switch:
    1. Virtual machine is not connected because of an invalid IP address
    2. Host machine shares the virtual switch and the host’s internet connection is lost.
    How can I resolve this?

Leave a Reply

Your email address will not be published.