Open up the cmd.exe and run it as an administrator.
Step 1
Then run the below command
netstat -ano | findstr :<PORT>
Example- You can replace the <PORT> with the port number you want
Step 2
Now, run the following command to kill the process using process ID.
taskkill /PID <PID> /F
Example- Now you can replace the <PID>