HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

netsh interface portproxy — Configure and display the status of various network components. More information: <https://learn.mic

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandstatusandconfigurenetsh interface portproxyclidisplay
windows

Problem

How to use the netsh interface portproxy command: Configure and display the status of various network components. More information: <https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-interface-portproxy>.

Solution

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={{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

Code Snippets

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

Context

tldr-pages: windows/netsh interface portproxy

Revisions (0)

No revisions yet.