本文出自Simmy的个人blog:西米在线 http://simmyonline.com/archives/375.html
netstat -n time delay
这是一个很实用的用来诊断网络问题的命令,可以实时查看打开的端口号,建立的连接。
例如,某查看某软件开启后,其连接的IP,端口号的信息,进而为故障排除提供依据。
netstat -n 3 显示当前连接,含IP,端口等信息,每3秒刷新一次。
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.
(C) 版权所有 1985-2003 Microsoft Corp.
C:\netstat -n 3
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
TCP 192.168.13.147:4727 121.14.96.232:8000 CLOSE_WAIT
本文转simmy51CTO博客,原文链接:http://blog.51cto.com/helpdesk/171021
,如需转载请自行联系原作者