Netsh interface portproxy add v4tov4 listenport=5555 connectport=80 connectaddress= 157.166.226.25 protocol=tcp
Netsh routing ip nat add portmapping Ethernet1 udp 0.0.0.0 53 192.168.100.100 53Īnother portproxy feature is an opportunity to make it look like any remote network service is running locally.įor example, let’s redirect the connection from the local port 5555 to a remote HTTP server with IP address 157.166.226.25 (CNN website): You can configure port forwarding between server interfaces using the graphical snap-in ( rrasmgmt.msc) or with the command: You can use Windows Server with the RRAS and NAT role installed to configure port forwarding for UDP traffic. Also you can’t use the loopback interface 127.0.0.1 as the connectaddress. You won’t be able to forward UDP ports this way. This forwarding scheme works only for TCP ports.