Command line for looking at specific port

user1580018 picture user1580018 · Aug 17, 2012 · Viewed 1.2M times · Source

Is there a way to examine the status of a specific port from the Windows command line? I know I can use netstat to examine all ports but netstat is slow and looking at a specific port probably isn't.

Answer

Md. Naushad Alam picture Md. Naushad Alam · Jun 18, 2014

Here is the easy solution of port finding...

In cmd:

netstat -na | find "8080"

In bash:

netstat -na | grep "8080"

In PowerShell:

netstat -na | Select-String "8080"