1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 12:02:08 +02:00
tldr/pages/windows/netsh-interface-portproxy.md
Aleksandr Kostikov c12e5d7884
netsh-interface-portproxy: add page (#10485)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-07-14 00:06:51 +02:00

700 B

netsh interface portproxy

Configure and display the status of various network components. More information: https://learn.microsoft.com/en-us/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={{192.168.0.1}} listenport={{8080}} connectaddress={{10.0.0.1}} connectport={{80}}

  • Remove IPv4 port forwarding (run in elevated console):

netsh interface portproxy delete v4tov4 listenaddress={{192.168.0.1}} listenport={{8080}}

  • Display help:

netsh interface portproxy