kill a process in particular port windows code example Example: kill service by port number on windows taskkill /F /PID PORT_NUMBER