> For the complete documentation index, see [llms.txt](https://security.musana.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://security.musana.net/linux/local-and-remote-port-forwarding.md).

# Local & Remote Port Forwarding

**SSH Local Port Forwarding**

```
ssh user@RemoteIP -L LocalPort:RemoteIP:RemotePort
```

`localhost:LocalPort --> RemoteIP:RemotePort` &#x20;

&#x20;**Windows Local Port Forwarding**&#x20;

```
For Add;
netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=LocalPort connectaddress=RemoteIP connectport=RemotePort

For delete;
netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=LocalPort
```
