Use Netstat to view listening ports and PID in Windows – Knowligent
Use Netstat to view listening ports and PID in Windows

Use Netstat to view listening ports and PID in Windows

HomeHow to, TechUse Netstat to view listening ports and PID in Windows

You never know when this will come in handy

CMD: Check port open with just 1 command | NETVN

In another article we explained computer ports and their function. What else can we do with port information? Since all traffic in and out of the computer goes through ports, we can monitor them to see what they are doing. Maybe the port isn’t listening for traffic? Maybe something is using a port that shouldn’t be?

We're going to use the Windows netstat command to view our listening ports and PID (Process ID). We're also going to see what we can do with that information.

The netstat command is a combination of the words "network" and "statistics". The netstat command works in all versions of Windows, from Windows XP to Windows 10. It is also used in other operating systems (OS) such as Unix and Linux, but we will stick to Windows here.