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