To check if a port is currently in use on a Windows machine:
1)Start Command Prompt.
2)In the command console enter:
netstat -ano | findstr portNumber
This lists any processes where the port number is included somewhere on the line.
Make a note of the number at the end of the line. This is the process ID (PID).
Run the task-list program for this PID:
tasklist | findstr PID
Also check
This[
^], it will help you.