Windows Server 2022: Hyper-V VM with Installed OS and Plesk Control Panel - Internal IP Not Public

Abstract: Resolve Hyper-V VM internal IP issue by configuring an External Virtual Switch to expose Plesk on Windows Server 2022 to the public network.

Created: 2026-08-14 by
To make a Hyper-V virtual machine running Windows Server 2022 and Plesk accessible on the public network, you must configure an External Virtual Switch in Hyper-V Manager. This switch bridges the VM’s internal network adapter directly to your physical host’s network interface card, allowing the guest OS to obtain a routable IP address from your local router or ISP gateway.

Understanding the Network Architecture

The core issue arises when a Hyper-V virtual machine is connected to an Internal or Private switch. These switch types create isolated networks that exist only within the host operating system. Traffic generated by the VM cannot reach the physical LAN, let alone the public internet. To expose Plesk services such as HTTP (port 80) and HTTPS (port 443) to external clients, the VM requires direct Layer 2 connectivity to the physical network segment. An External Virtual Switch acts as a bridge between the virtual environment and the physical hardware. When configured correctly, it allows the VM to behave like any other physical device on your network. It receives its own MAC address and can request an IP address via DHCP from your main router, or be assigned a static IP on the same subnet as your host machine. This configuration is essential for server roles that require inbound connections, such as web hosting environments managed by Plesk. Setting up a Domain in Hyper-V with External Switches provides a comprehensive guide on integrating multiple servers into this bridged architecture, ensuring consistent networking across all virtual instances.

Configuring the External Virtual Switch

The first step is to create the necessary network bridge within Hyper-V Manager. Open Hyper-V Manager on your Windows Server 2022 host. From the right-hand Actions pane, select Virtual Switch Manager. In the window that appears, choose New virtual network switch and select the option labeled External. Click Create Virtual Switch. You will see a list of available physical network adapters on your host. Select the active Ethernet or Wi-Fi adapter that has your public internet connection. Check the box that says Allow management operating system to share this network adapter. This setting is critical because it ensures that the host server retains its own network connectivity while the VM uses the same physical link. If you uncheck this box, the host may lose network access entirely, disrupting remote administration tools. Name the switch something descriptive, such as PublicNetSwitch, and click OK. Windows may display a warning indicating that the network connection will be temporarily lost. Confirm the action. Once the switch is created, it appears in the list of virtual switches in Hyper-V Manager.

Connecting the VM to the New Switch

With the switch ready, you must attach your Windows Server 2022 VM to it. Shut down the virtual machine if it is currently running. Right-click the VM in the Hyper-V Manager list and select Settings. Navigate to the Network Adapter section under the hardware configuration. Change the dropdown menu from the current switch (likely Internal or None) to the newly created PublicNetSwitch. Click OK to save the changes. Start the VM. Upon booting, Windows Server will detect the new network adapter. Depending on your router’s DHCP settings, the VM should automatically receive an IP address on the same subnet as your host. Verify this by opening PowerShell inside the VM and running ipconfig. Look for the IPv4 Address. It should match the pattern of your local network (e.g., 192.168.1.x). If the VM does not receive an IP automatically, you may need to configure a static IP manually within the Guest OS. Ensure the IP address is unique on the network, and set the Default Gateway and DNS servers to match those of your host machine. You can retrieve these values on the host by running ipconfig /all in Command Prompt.

Firewall and Routing Considerations

Even with correct network switching, public access may fail due to firewall rules. Windows Firewall on the Guest OS must allow inbound traffic on ports 80 and 443 for Plesk to function. Additionally, check the Windows Firewall on the Host machine. While the External Switch bypasses many NAT restrictions, some enterprise firewalls or host-based security suites might still filter traffic. Ensure that your physical router forwards traffic appropriately if you are trying to access the server from outside your local network. For external access beyond your LAN, you typically need to set up Port Forwarding on your router to point port 80 and 443 to the static IP of your Hyper-V VM. Alternatively, use Dynamic DNS if your ISP provides a dynamic public IP address. Making a Virtual Internal NAT Switch Work for Hyper-V VMs explains why NAT switches often fail for public-facing services, highlighting the limitations of internal routing compared to direct bridging.

Verifying Plesk Accessibility

Once the network stack is configured, test the connection from another device on the same LAN. Open a browser and navigate to http://. If Plesk loads, the internal network configuration is successful. To verify public accessibility, use a service like whatismyipaddress.com from within the VM to confirm its public IP matches your host’s public IP. Then, attempt to access that public IP from an external network, such as mobile data. If the site is unreachable externally but works internally, the issue lies with your router’s port forwarding rules or ISP blocking residential ports. Many ISPs block port 80 and 443 for residential connections. In such cases, you may need to use alternative ports for web traffic or contact your ISP for business-grade lines that allow full port exposure.

Frequently Asked Questions

Why can I ping the VM from the host but not from other devices?

This usually indicates that the VM is still connected to an Internal Switch rather than an External one. Internal switches do not route traffic to the physical LAN. Verify the switch type in Hyper-V Manager and ensure it is set to External with the host adapter selected.

Does using an External Switch expose my host to security risks?

Yes, slightly more than an isolated setup, as the host and VM share the same physical network segment. However, this is standard practice for servers. Mitigate risks by keeping both host and guest OS updated, using strong passwords, and configuring Windows Firewall to restrict unnecessary inbound ports.

Can I assign a static IP to the VM without configuring it in the guest OS?

No, the IP configuration happens inside the Guest Operating System. You can reserve the IP in your router’s DHCP settings based on the VM’s MAC address, but the VM itself must be configured to accept that address or request it via DHCP.

What happens if I disconnect the host’s internet cable?

Both the host and the VM will lose internet connectivity simultaneously since they share the same physical adapter. The VM will remain accessible on the local LAN if other devices are connected, but it will not have external routing capabilities until the physical link is restored.

Is it possible to have two different external IPs for two VMs?

Not directly through Hyper-V alone unless your ISP provides multiple static IPs and your router supports them. Typically, both VMs will share the host’s single public IP, relying on port forwarding to distinguish services. For distinct public identities, consider using a reverse proxy or dedicated IP assignments from your hosting provider.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More