Cannot bind to some ports due to permission denied

前端 未结 6 719
甜味超标
甜味超标 2020-12-12 19:15

For the last 3 months or so I\'m having random errors where I can\'t bind a specific port where our Identity server is running on my local development workstation. At first

6条回答
  •  忘掉有多难
    2020-12-12 20:01

    The reason is that Hyper-V takes over these ports, to prevent it from happening do the following:

    1. dism.exe /Online /Disable-Feature:Microsoft-Hyper-V (will have to restart)
    2. netsh int ipv4 add excludedportrange protocol=tcp startport= numberofports=1
    3. dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

    The original solution is here.

    If after that you still can't bind to the port do the following:

    • netsh http add iplisten 0.0.0.0 for IPv4
    • netsh http add iplisten :: for IPv6

    More information is here.

提交回复
热议问题