Last active
June 3, 2025 14:15
-
-
Save schmich/ab42d1e094c35fd0b444768841a696d9 to your computer and use it in GitHub Desktop.
Forward external connections to Docker on Windows
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
| REM In admin prompt | |
| REM Ensure web server/application is listening on all interfaces (0.0.0.0) | |
| netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=80 connectaddress=10.0.75.2 connectport=80 | |
| netsh advfirewall firewall add rule name="App" dir=in action=allow protocol=TCP localport=80 remoteport=80 | |
| netsh interface portproxy show v4tov4 | |
| netsh advfirewall firewall show rule "App" | |
| netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=80 | |
| netsh advfirewall firewall del rule name="App" | |
| netsh interface portproxy show v4tov4 | |
| netsh advfirewall firewall show rule "App" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! You save my day!