How check netstat in windows

If you want to monitor active connections, listening ports, or troubleshoot networking issues on Windows, netstat is your go-to tool. Here’s how to use it effectively via Command Prompt.

Step 1: Open Command Prompt as Administrator

Hit Win + S, type cmd, then right-click on “Command Prompt” and choose Run as administrator. This gives you full access to all netstat functionalities.

Step 2: Run Basic Netstat Command

To see all active connections and listening ports:

netstat

This will display:

  • Protocol (TCP or UDP)

  • Local address and port

  • Foreign address and port

  • Connection state (e.g., ESTABLISHED, LISTENING)

Step 3: Use Netstat with Parameters

Want more details? Add flags to customize output.

Show all active and listening connections with process IDs:

netstat -ano

This is especially useful if you want to identify which PID (Process ID) is using a specific port.

Combine with tasklist to find the process name:

tasklist | findstr [PID]

Example:

tasklist | findstr 1234

See only listening ports:

netstat -an | findstr LISTENING

Filter for specific port (e.g., port 80):

netstat -an |

Share:

More Posts

How to Install Maven on macOS 2025

What you will read?1 Check for Java Installation2 Install Homebrew (If Not Installed)3 Install Maven via Homebrew4 Verify Environment Variables (Optional)5 Create a Sample Maven

How to Use Google SMTP Server

What you will read?1 Step 1: Enable SMTP Access in Gmail2 Step 2: Secure Connection with TLS3 Step 3: Send an Email via SMTP4 Step

how to install wine on RHEL

What you will read?1 Check RHEL version and CPU architecture2 Update system and install base tools3 Verify subscription and enable CodeReady Builder4 Enable EPEL repository5

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments