How to make sure that a certain Port is not occupied by any other process
Solution 1:
You can use "netstat" to check whether a port is available or not.
Use the netstat -anp | find "port number"
command to find whether a port is occupied by an another process or not. If it is occupied by an another process, it will show the process id of that process.
You have to put : before port number to get the actual output
Ex
netstat -anp | find ":8080"
Solution 2:
It's netstat -ano|findstr port no
Result would show process id in last column