Archive for November, 2007
I’m just going to blog a quick bit about using netstat. The command netstat (NETwork STATistics) will display network connections, routing tables and information on network interfaces. This is a command line tool. It is available on windows as well as *nix. I’m talking mostly about it in regards to the world of windows.
In the past I’d run netstat, use it to show what connections are open and on what port. It also would display the PID allowing me to open task manager and see what PID is using that port. I recently found out that since SP2 on XP (and I’m going to assume Vista). That you can run the following command.
Netstat -nob will do the PID look up also. Resulting in a display like so.
TCP 127.0.0.1:2599 127.0.0.1:2598 ESTABLISHED 7568
Of course yours will be a longer list. So in summary.
* Bring up your command line
* run netstat -nob
* HOORAY enjoy all your information