windows kill service runnin on a port code example
Example 1: windows kill process on port
netstat -ano | findstr :<PORT>
taskkill /PID <PID> /F
Example 2: kill service by port number on windows
taskkill /F /PID PORT_NUMBER
netstat -ano | findstr :<PORT>
taskkill /PID <PID> /F
taskkill /F /PID PORT_NUMBER