Windows下查看tcp端口占用、会话命令

1、查看所有端口占用情况:netstat

《Windows下查看tcp端口占用、会话命令》

2、查看某一端口占用情况:netstat -ano | findstr “8080”

《Windows下查看tcp端口占用、会话命令》

3、查看有效会话(TIME_WAIT)数量:netstat -ano |find “TIME_WAIT” /c,

其他会话如:CLOSE_TIME/ESTABLISHED替换前面的TIME_WAIT即可

《Windows下查看tcp端口占用、会话命令》

4、查看可用端口数量:netsh int ipv4 show dynamicportrange tcp

《Windows下查看tcp端口占用、会话命令》

5、查看当前ip的某一端口数量:netstat -an |find “172.0.0.1:80” /c

《Windows下查看tcp端口占用、会话命令》

    原文作者:Testgocn
    原文地址: https://blog.csdn.net/ljc19940316/article/details/119561762
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞