Viewing processes that use port 5556
C:\windows\system32>netstat-ano | Findstr "5556"
TCP 0.0.0.0:5556 0.0.0.0:0 LISTENING 7316
TCP [::]:5556 [::]:0 LISTENING 7316
View the PID 7316 program
C:\windows\system32>tasklist/fi "pid eq 7316"
Image name PID session name Session # Memory usage
========================= ======== ================ =========== ============
Java.exe 7316 rdp-tcp#0 2 81,656 K
Terminate Process Java.exe
C:\windows\system32>taskkill/im java.exe/f
Success: The process "Java.exe" has been terminated with a PID of 3592.
Success: The process "Java.exe" has been terminated with a PID of 7536.
Success: The process "Java.exe" has been terminated with a PID of 9308.
Success: The process "Java.exe" has been terminated with a PID of 6320.
Success: The process "Java.exe" has been terminated with a PID of 9828.
Success: The process "Java.exe" has been terminated with a PID of 10032.
Success: The process "Java.exe" has been terminated with a PID of 7464.
Success: The process "Java.exe" has been terminated with a PID of 20096.
Success: The process "Java.exe" has been terminated with a PID of 7016.
Success: The process "Java.exe" has been terminated with a PID of 1424.
Success: The process "Java.exe" has been terminated with a PID of 7316.
C:\windows\system32>
Ports and processes