how to connect host machine to virtual machine in Hyper-V and its working using Using the Hyper-V Manager GUI and Using PowerShell commands, click here to learn more.