Hi
To set a static IP address for your Windows Server 2019 virtual machine in Hyper-V, you can follow these steps:
Open the virtual machine settings: In Hyper-V Manager, right-click on the virtual machine and select "Settings."
Configure network adapter settings: In the virtual machine settings window, select the network adapter from the list on the left.
Enable the network adapter if it's not already enabled: Ensure that the network adapter is checked and enabled.
Set the connection type: Choose the appropriate connection type for your network setup. If you want external access, select "External" and choose the physical network adapter that connects to the external network.
Configure IP settings: Select the "IPv4 Address" option and choose "Static." Then, specify the desired IP address, subnet mask, default gateway, and DNS server(s) based on your network configuration. Enter the appropriate values for your network setup.
Apply the settings: Click "OK" to save the changes and apply the static IP address to the virtual machine.
After applying the static IP address configuration, the Windows Server 2019 virtual machine should use the specified IP address for external access. Ensure that the IP address you assign is within the valid range for your network and does not conflict with any other devices or systems on the network.
Remember to configure any necessary firewall rules or port forwarding on your network infrastructure to allow external access to the virtual machine using the assigned static IP address.