windows find if something is running on port and stop it code example
Example 1: find out process using port windows
netstat -ano | findstr 8080
Example 2: kill process on port windows
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f