问题
I have hyper-v enabled in windows 10. When I check the excluded ports, I get:
C:\> netsh interface ipv4 show excludedportrange protocol=tcp
Protocol tcp Port Exclusion Ranges
Start Port End Port
---------- --------
5357 5357
9800 9800
9801 9801
49671 49770
49871 49970
50000 50059 *
61117 61216
61220 61319
61902 62001
* - Administered port exclusions.
Why Hyper-V reserves these ports?
How Administered port exclusions ( ie, range 50000-50059 ) differ from other port exclusions?
For example, when i tried to ping to all these ports using a net.Listen() in golang, all ports except 50000-50059 returns error:
listen tcp 127.0.0.1:9801: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
来源:https://stackoverflow.com/questions/58216537/what-is-administered-port-exclusions-in-windows-10