netsh interface portproxy
Configure and display the status of various network components. More information: https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-interface-portproxy.
- Display the current port forwarding setup:
netsh interface portproxy show all
- Set up IPv4 port forwarding (run in elevated console):
netsh interface portproxy add v4tov4 listenaddress= listenport= connectaddress= connectport=
- Remove IPv4 port forwarding (run in elevated console):
netsh interface portproxy delete v4tov4 listenaddress= listenport=
- Display help:
netsh interface portproxy
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
