Skip to content

Instantly share code, notes, and snippets.

@soardex
Created January 28, 2017 17:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soardex/cddb256b888801c66e3e7bf39950af82 to your computer and use it in GitHub Desktop.
Save soardex/cddb256b888801c66e3e7bf39950af82 to your computer and use it in GitHub Desktop.
Port Forwarding Windows
;; 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