The netstat command can now display process IDs that correspond to active TCP or UDP connections in Windows 2000 (907980)
The information in this article applies to:
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Server
INTRODUCTIONThis article describes a new feature that is available in the Microsoft Windows 2000 version of the netstat command. The netstat command can now display process IDs (PIDS) that are associated with active TCP or UDP network connections. This feature is available by downloading a Windows 2000 update.Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONThe netstat command can display the following information: - Active TCP connections
- Ports on which a computer is listening
- Ethernet statistics
- The IP routing table
- IPv4 statistics
- IPv6 statistics
The netstat command displays active TCP connections when you use the command without parameters. The new -o parameter lets you audit and troubleshoot the ports that are being used. When you use the netstat command together with the -o parameter, the command displays the owning PID that is associated with each connection.
This parameter was not previously present in Windows 2000. After you install this update, you can map ports to PIDs by using the netstat -ano command. Note The Microsoft Windows XP and Microsoft Windows Server 2003 versions of the netstat command can display PIDs. This update does not provide the -b and -v parameters that are available in the Windows XP and Windows Server 2003 versions of the netstat command.
The netstat -ano command displays output that is similar to the following: Proto | Local address | Foreign address | State | PID | TCP | 0.0.0.0:80 | 0.0.0.0:0 | LISTENING | 460 | TCP | 0.0.0.0:135 | 0.0.0.0:0 | LISTENING | 1640 | TCP | 0.0.0.0:445 | 0.0.0.0:0 | LISTENING | 4 | TCP | 0.0.0.0:1024 | 0.0.0.0:0 | LISTENING | 460 | TCP | 0.0.0.0:1025 | 0.0.0.0:0 | LISTENING | 1308 | TCP | 0.0.0.0:42510 | 0.0.0.0:0 | LISTENING | 1116 |
You can identify the port and the associated PID from the netstat -ano command output. You can then use Task Manager to identify the process that is associated with the PID. By default, Task Manager does not display the PID that is associated with a process. To display a PID in Task Manager, follow these steps: - Press CTRL+ALT+DELETE, and then click Task Manager.
- In Task Manager, click the Process tab, click View, and then click Select Columns.
- In the Select Columns dialog box, click to select the PID (Process Identifier) check box, and then click OK. You see that the PID column has been added to the Process tab. You can now locate the PID and the corresponding executable file that started the process in Task Manager.
For more information about how to use the netstat command to find a PID, click the following article number to view the article in the Microsoft Knowledge Base:
281336
How to determine which program uses or blocks specific transmission control protocol ports in Windows
For more information about standard terminology that is used to describe Microsoft software updates, click the following article number to view the article in the Microsoft Knowledge Base:
824684
Description of the standard terminology that is used to describe Microsoft software updates
Modification Type: | Minor | Last Reviewed: | 7/26/2006 |
---|
Keywords: | kbinfo kbfix kbWin2000preSP5fix kbHotfixServer kbQFE kbpubtypekc KB907980 kbAudEndUser |
---|
|