Thursday, 21 July 2011

Windows - Check what is running on port #

To find out what processes are running a certain port on a windows environment you can issue the following on the command line:
C:/ netstat -o
Proto Local Address Foreign Address State PID
TCP Harvey:1050 localhost:27015 ESTABLISHED 2504
TCP Harvey:1056 localhost:5354 ESTABLISHED 1756
TCP Harvey:1110 localhost:1111 ESTABLISHED 5972
TCP Harvey:1111 localhost:1110 ESTABLISHED 5972
TCP Harvey:1112 localhost:1113 ESTABLISHED 5972
TCP Harvey:1113 localhost:1112 ESTABLISHED 5972
TCP Harvey:1342 localhost:12080 ESTABLISHED 5972
TCP Harvey:1353 localhost:12080 ESTABLISHED 5972
TCP Harvey:1359 localhost:12080 ESTABLISHED 5972

For a more detailed view of active connections you can issue:
C:/ netstat -noa
Active Connections

Proto Local Address Foreign Address State PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1332
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4

No comments:

Post a Comment

Please feel free to leave a comment