how to kill process by port number in windows code example
Example 1: kill process running on port in windows
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
Example 2: stop a process running on a port
# Print PID of process bound on that port.
fuser 8080/tcp
# Kill that process
fuser -k 8080/tcp