If you want to forward packet from your windows server to local server you can use this command
Use case : i want to forward If user call 192.168.100.233
port 8006
it will be forwarded to 192.168.100.254
port 8006
netsh interface portproxy add v4tov4 listenport=8006 listenaddress=192.168.100.233 connectport=8006 connectaddress=192.168.100.254
netsh interface portproxy show all
netsh interface portproxy delete v4tov4 listenport=8006 listenaddress=192.168.100.233
- Use Socat <- https://github.com/valorisa/socat-1.8.0.1_for_Windows/blob/main/README.
- If you want forward port
10000
UDP on192.168.1.1
to your localhost, you can use this
- If you want forward port
socat -v UDP4-RECVFROM:10000,fork UDP4-SENDTO:192.168.1.1:10000