Kill process running on port on Windows

Kill process using port on Windows:

get pid of process running on port

netstat -aon | findstr :<port>

The PID of the process is the last column

get info about process running on port using its PID

tasklist /svc /FI "PID eq <pid>"

Kill process running on port using PID

taskkill /PID <pid> /F