Created
January 28, 2017 17:38
-
-
Save soardex/cddb256b888801c66e3e7bf39950af82 to your computer and use it in GitHub Desktop.
Port Forwarding Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; forward all incoming traffic to port 8080 from port 80 | |
netsh interface portproxy add v4tov4 listenport=80 listenaddress=127.0.0.1 connectport=8080 connectaddress=127.0.0.1 | |
;; get ports that are open | |
netstat -ano | findstr :8080 | |
;; show all port proxies | |
netsh interface portproxy show all | |
;; clear all forwarding rules | |
netsh interface portproxy reset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment