Skip to content

Instantly share code, notes, and snippets.

@camalot
Created August 21, 2021 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camalot/fa640a573c8da2c2197ff788eb81f321 to your computer and use it in GitHub Desktop.
Save camalot/fa640a573c8da2c2197ff788eb81f321 to your computer and use it in GitHub Desktop.
Allow Docker for Windows to Listen on Host Network
$LISTEN_ADDRESS="<Ethernet adapter vEthernet (WSL) IPv4 Address>"
netsh interface portproxy add v4tov4 listenaddress=$LISTEN_ADDRESS listenport=2375 connectaddress=127.0.0.1 connectport=2375
netsh advfirewall firewall add rule name="Docker" dir=in action=allow protocol=TCP localport=2375 enable=yes profile=domain,private,public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment