# Netsh

<figure><img src="https://3782755820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxiHgPDbj4maVZuaNWLtn%2Fuploads%2FRuwEoKZYSgvENgWIrZdz%2Fimage.png?alt=media&#x26;token=c12e903e-0b16-40c2-a52e-a80a1b0a9817" alt=""><figcaption></figcaption></figure>

### Using Netsh to port forward

{% code overflow="wrap" %}

```batch
C:\Windows\system32> netsh.exe interface portproxy add v4tov4 listenport=8080 listenaddress=10.129.15.150 connectport=3389 connectaddress=172.16.5.25
```

{% endcode %}

### Verifying port forward

```batch
C:\Windows\system32> netsh.exe interface portproxy show v4tov4
```

Assuming that the 172.16.5.25 has rdp open, we can now

```shell-session
$ xfreerdp /v:10.129.15.150 /u:user /p:password
```

\\
