Skip to content

Instantly share code, notes, and snippets.

@jeferwang
Last active August 3, 2022 14:33
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 jeferwang/6bed039e1721f6c20d6338006f365a0b to your computer and use it in GitHub Desktop.
Save jeferwang/6bed039e1721f6c20d6338006f365a0b to your computer and use it in GitHub Desktop.
:: Show Reserved Ports
netsh interface ipv4 show excludedportrange protocol=tcp
:: Stop Server
net stop winnat
:: Change Port
netsh int ipv4 set dynamic tcp start=49152 num=16384
netsh int ipv6 set dynamic tcp start=49152 num=16384
:: Start Server
net start winnat
:: Reference
https://github.com/docker/for-win/issues/3171
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004973960-Critical-Internal-Error-on-Startup-of-IntelliJ-IDEA-Cannot-Lock-System-Folders-
https://superuser.com/questions/1579346/many-excludedportranges-how-to-delete-hyper-v-is-disabled/1671710#1671710
https://stackoverflow.com/questions/48478869/cannot-bind-to-some-ports-due-to-permission-denied/62359555#62359555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment