how to kill a server running on a port windows code example
Example 1: kill service by port number on windows
taskkill /F /PID PORT_NUMBER
Example 2: stop localhost server
netstat -ano | findstr :yourPortNumber
tskill typeyourPIDhere
taskkill /F /PID PORT_NUMBER
netstat -ano | findstr :yourPortNumber
tskill typeyourPIDhere