Windows netstat tip

November 8, 2018, 9:57 pm technology

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.png

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

netstat01.png

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.png

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

ย 

Thanks everyone

Next Post Previous Post