Created
December 20, 2017 21:03
-
-
Save alexcheng1982/82f777decc23cde37429bddd92bfab69 to your computer and use it in GitHub Desktop.
Windows port forwarding for EC2
This file contains hidden or 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
<powershell> | |
$ipAddress = (invoke-restmethod -uri http://169.254.169.254/latest/meta-data/local-ipv4) | |
"Setting up port forwarding" | |
netsh interface portproxy add v4tov4 listenport=80 connectport=8080 connectaddress=$ipAddress | |
</powershell> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment