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.