Windows netstat tip

Hi

If you debug a lot your Windows computer and you need to issue the netstat -ano command, it’s often hard to see if a services is listening on the correct ports.

I find a small tip to quickly find that information.

In taskmgr.exe you right click the first coloum to display the PID, as such;

netstat02

After that you can see a normal list from netstat -ano;

netstat01

As you can see the list can be quite big, as such the tip is simply to parse the netstat -ano with a findstr command.

That way; netstat -ano | findstr “PID”

I tested it with the PID 5700, the steam client, for that result;

netstat03

As you can see the list is really easier to read with that small tip ! 🙂

 

Thanks everyone

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s