netstat -ano | findstr "PORT_NUMBER"
taskkill /PID <ID_HERE> /f
//can be found on the last column next to LISTENING
____________________________________________________________________________
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 24660
____________________________________________________________________________
!!
taskkill /PID 24660 /f
//Open command prompt and run the following commands
C:Usersusername>netstat -o -n -a | findstr 0.0:3000
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116
C:Usersusername>taskkill /F /PID 3116
//here 3116 is the process ID
netstat -ano | findstr :<PORT>
(Replace <PORT> with the port number you want, but keep the colon)
Step 2:
Next, run the following command:
taskkill /PID <PID> /F