Windows Developer Help: Knowing a Process with port and killing it
Sometimes we need to know the application or process that is using a particular port and kill or stop that process in a Microsoft Windows based PC.
Following command (Netstat ), shows list of process and port it is using
Netstat -a -n -o
You can pipe the response with more command like follows,
Netstat -a -n -o | more
Once we know the Process ID(PID) of the process using a particular port, we can use the following command to know more about the process or kill it.
tasklist /svc /FI "PID eq 1196" ( Get details about the process)
taskkill /PID 827 (Killl the process, similar to ps -ef in linux)
Following command (Netstat ), shows list of process and port it is using
Netstat -a -n -o
You can pipe the response with more command like follows,
Netstat -a -n -o | more
Once we know the Process ID(PID) of the process using a particular port, we can use the following command to know more about the process or kill it.
tasklist /svc /FI "PID eq 1196" ( Get details about the process)
taskkill /PID 827 (Killl the process, similar to ps -ef in linux)
Comments
Post a Comment