大网数据广告活动
性能与资源

How to determine which program uses or blocks specific TCP ports in Windows Server 2003

· 52CE 我爱测

Discusses how to determine which program uses or blocks specific Transmission Control Protocol (TCP) ports.

This step-by-step article discusses how to determine which program uses or blocks specific Transmission Control Protocol (TCP) ports.

For a Microsoft Windows XP version of this article, see 281336.

Applies to:   Windows Server 2003
Original KB number:   323352

Summary

The Netstat.exe utility has a new switch, the -o switch, that can display the process identifier (ID) that is associated with each connection. This information can be used to determine which process (program) listens on a particular port. For example, the netstat -ano command can produce the following output:

Proto Local Address Foreign Address State PID  
TCP 0.0.0.0:80 0.0.0.0:0 Listening 888

If you use Task Manager, you can match the process ID that is listed to a process name (program). With this feature, you can find the specific port that a program currently uses. Because a program already uses this specific port, another program is prevented from using that same port.

How to match the process ID to a program

To match the process ID to a program, follow these steps:

  1. Select <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Esc</kbd> to open Task Manager.
  2. Select the Processes tab.
  3. If you don't have a PID column, select View > Select Columns, and then select to select the PID (Process Identifier) check box.
  4. Select the column header that is labeled "PID" to sort the process by PIDs. You should be able to easily find the process ID and match it to the program that is listed in Task Manager.

How to obtain additional information about the Netstat.exe utility

To obtain additional information about the Netstat.exe utility, follow these steps:

  1. Select Start > Run.
  2. In the Open box, type cmd, and then select OK.
  3. At a command prompt, type netstat /?.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。