SESK: Stuff Everyone Should Know · sesk.info/aplus-netstat-pid
Which netstat option adds the process ID (PID) for each active connection?
netstat -o shows the owning process ID for each connection.
- -e
- -r
- -o ✔
Why: With the PID from netstat -o you can look up the program in Task Manager. That helps you find which application opened a suspicious connection.
Huh, didn't know that: netstat -a displays all active TCP connections and the TCP and UDP ports the computer is listening on.
There are 10 types of people: those who understand binary and those who don't.
Like this card?
References
Answer: -o. With the PID from netstat -o you can look up the program in Task Manager. That helps you find which application opened a suspicious connection.
- netstat command reference, Microsoft Learn learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat
-o Displays active TCP connections and includes the process ID (PID) for each connection.
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.