how to kill ports in cmd windows code example Example: kill service by port number on windows taskkill /F /PID PORT_NUMBER