How to map host ip and port to Hyper-V

时间:2025-04-19 10:05:13

1.1       Add an port proxy

netsh interface portproxy add v4tov4 listenport=hostport listenaddres=hostip connectaddress=hypervip connectport=hypervport

example:

C:\Windows\system32>netsh interface portproxy add v4tov4 listenport=22 listenaddres=192.168.0.103 connectaddress=192.168.137.52 connectport=22

1.2       Check the port proxy

netsh interface portproxy show v4tov4

1.3       Delete a port proxy

netsh interface portproxy delete v4tov4 listenaddress=hostip  listenport=hostport