10/09/2012

Win 7 Check Port usage


If we want to find out who's using the port 8008, execute in cmd:
C:\Documents and Settings\Administrator>netstat -aon|findstr 8008 
    TCP    0.0.0.0:8008           0.0.0.0:0              LISTENING       2596 

This means that Port 8008 is used by process 2596

Now execute:
C:\Documents and Settings\Administrator>tasklist|findstr "2596" 
  javaw.exe                   2596 Console                 0     33,036 K

Now we find out javaw.exe is the process 2596. It's using port 8008
If not found, open task manger to find which process is 2596

No comments:

Post a Comment