Thursday, February 4, 2010

Using netstat to determine listening ports

The netstat command can be used to determine listening ports with different operating systems.  The command for Windows would be:

netstat –na | find /i “Listening”

netstat_windows

Newer versions of Windows include a –b parameter to determine executables:

netstat_windows_2

The syntax is similar with Linux:

netstat –na | grep –i listen

netstat_linux

With the Windows platform, a nice utility for determining listening ports is CurrPorts found at

 http://www.nirsoft.net/utils/cports.html.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.