Skip to content

Instantly share code, notes, and snippets.

@x3rAx
Last active September 30, 2020 18:30
Show Gist options
  • Save x3rAx/e3325f1086d0faba4572d541688b6430 to your computer and use it in GitHub Desktop.
Save x3rAx/e3325f1086d0faba4572d541688b6430 to your computer and use it in GitHub Desktop.
Hyper-V dynamic ports fix

Hyper-V uses dynamics port range to bind some ports. This range is so low that e.g. port 3306 can be used by it. To set the dynamic port range to begin at port 49152 use:

netsh interface ipv4 set dynamic tcp start=49152 num=16384

To show the current setting use:

netsh interface ipv4 show excludedportrange protocol=tcp

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment