- Open Power Shell from Windows search.
- Type "netstat -ano -p tcp" and hit enter.
- Find the PID (actualPID) of the process in the port in the list. (Eg: 8080)
- taskkill /F /PID "actualPID"
Now the port is clear for you to run Java or NodeJS or any application through 8080 port if you are looking to do that. (http://localhost:8080)