command to kill apps on port 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