stop application in port process windows code example
Example 1: windows stop process running on port 8080
netstat -ano | findstr <Port Number>
taskkill /F /PID <Process Id>
Example 2: windows kill process on port
netstat -ano | findstr :<PORT>
taskkill /PID <PID> /F