How To Use Netstat Command To Check Ports And Connections


how to use netstat command
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

Fix Windows 11 OS errors with Fortect:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning to find broken files that are causing the problems
  • Right-click on Start Repair to fix issues affecting your computer’s security and performance
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

Netstat helps you view active connections, open ports, and running network services. This guide explains how to run Netstat, read its output, and use the most helpful switches.

What Is Netstat And Why It Matters?

Netstat shows active TCP and UDP connections, listening ports, and routing tables. It helps you troubleshoot unknown connections, slow apps, and high network usage.

How To Run Netstat On Windows

Follow these steps to open Netstat from the command line.

  1. Open Start and type cmd.
  2. Select Command Prompt.
  3. Run netstat to display basic connection information.

If you get errors about the command not working, check this guide on fixing Netstat not recognized errors in Windows.

How To Check Active Network Connections

You can see every TCP and UDP connection on your system.

  1. Run netstat.
  2. Review Local Address and Foreign Address columns.
  3. Look at the State column to see if the connection is established or waiting.

How To Display All Listening Ports

Use a switch that shows all ports currently listening for traffic.

  1. Run netstat -a
  2. Look for entries marked as LISTENING.
  3. Identify apps bound to ports you want to investigate.

You can learn more in this detailed guide on checking listening ports with Netstat in Windows.

How To Show Running Processes That Use Each Port

You can match ports to specific processes for faster troubleshooting.

  1. Run netstat -ano.
  2. Note the PID in the last column.
  3. Open Task Manager and match the PID to the app using that port.

How To Check Protocol Statistics

Protocol stats help you identify dropped packets and connection issues.

  1. Run netstat -s.
  2. Review TCP and UDP sections for errors or resets.
  3. Compare values over time if you suspect network instability.

How To Watch Live Connection Changes

Netstat can refresh automatically to track changes.

  1. Run netstat -an 5.
  2. Let the command refresh every 5 seconds.
  3. Observe new or closing connections in real time.

If you also work with servers, you can check this useful guide on how to check ports in Windows Server.

Netstat Command FAQs

What is Netstat used for?

Netstat helps you inspect network activity, active connections, and open ports on your device.

How do I find which app uses a specific port?

Run netstat -ano and match the PID in the output with the same PID in Task Manager.

Does Netstat work on Windows 10 and Windows 11?

Yes, Netstat works the same on both Windows 10 and Windows 11.

Can Netstat detect malware?

Netstat cannot detect malware directly but it can reveal suspicious or unexpected remote connections.

Netstat gives you clear insight into your system network behavior and helps you troubleshoot blocked ports, slow apps, and suspicious activity. Once you learn the key switches, you can quickly spot problem connections and keep your Windows system more secure.

More about the topics: command prompt, Network

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages