Skip to main content
deleted 8 characters in body
Source Link

How to Find and Kill a Process by Port in Windows

Find the Process ID (PID) for the Specified Port:

Run the following command to find the process that is listening on the desired port:

C:\>netstatnetstat -ano | find "LISTENING" | find "<PORT>"

Replace <PORT> with the actual port number you're investigating.

Kill the Process:

After finding the process ID, you can terminate it by running:

C:\>taskkilltaskkill /pid <PROCESS-ID> /f

Replace <PROCESS-ID> with the PID obtained from the previous step.

How to Find and Kill a Process by Port in Windows

Find the Process ID (PID) for the Specified Port:

Run the following command to find the process that is listening on the desired port:

C:\>netstat -ano | find "LISTENING" | find "<PORT>"

Replace <PORT> with the actual port number you're investigating.

Kill the Process:

After finding the process ID, you can terminate it by running:

C:\>taskkill /pid <PROCESS-ID> /f

Replace <PROCESS-ID> with the PID obtained from the previous step.

How to Find and Kill a Process by Port in Windows

Find the Process ID (PID) for the Specified Port:

Run the following command to find the process that is listening on the desired port:

netstat -ano | find "LISTENING" | find "<PORT>"

Replace <PORT> with the actual port number you're investigating.

Kill the Process:

After finding the process ID, you can terminate it by running:

taskkill /pid <PROCESS-ID> /f

Replace <PROCESS-ID> with the PID obtained from the previous step.

Source Link

How to Find and Kill a Process by Port in Windows

Find the Process ID (PID) for the Specified Port:

Run the following command to find the process that is listening on the desired port:

C:\>netstat -ano | find "LISTENING" | find "<PORT>"

Replace <PORT> with the actual port number you're investigating.

Kill the Process:

After finding the process ID, you can terminate it by running:

C:\>taskkill /pid <PROCESS-ID> /f

Replace <PROCESS-ID> with the PID obtained from the previous step.