Windows 系统保留端口

Windows About 654 words

关于保留端口

客户端申请动态端口时,系统不会将保留端口给予客户端使用。

服务仍然可以监听保留端口。

查看保留端口

netsh int ipv4 show excludedportrange tcp

输出

PS C:\> netsh int ipv4 show excludedportrange tcp

协议 tcp 端口排除范围

开始端口    结束端口
----------    --------
        80          80
     47001       47001
     50000       50059     *
     55381       55480

* - 管理的端口排除。

添加保留端口

netsh int ipv4 add excludedportrange tcp startport=1433 numberofports=1 store=persistent

删除保留端口

netsh int ipv4 delete excludedportrange tcp startport=1433 numberofports=1

查看动态端口

netsh int ipv4 show dynamicport tcp

参考

https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/tcp-port-is-already-in-use/ba-p/371001

Views: 1,685 · Posted: 2022-07-12

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh