To check the port number association with Process id

C:\Windows\System32>netstat -ano | findstr 8080

  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       4984

  TCP    [::]:8080              [::]:0                 LISTENING       4984

takkill cannot kill the process with simple command

C:\Windows\System32>taskkill /PID 4984

ERROR: The process with PID 4984 could not be terminated.

Reason: This process can only be terminated forcefully (with /F option).


taskkill is successful when /f option is included.


C:\Windows\System32>taskkill /f /PID 4984

SUCCESS: The process with PID 4984 has been terminated.


C:\Windows\System32>netstat -ano | findstr 8080

  TCP    [::1]:53730            [::1]:8080             TIME_WAIT       0


credits : https://www.shellhacks.com/windows-taskkill-kill-process-by-pid-name-port-cmd/

Comments

Popular posts from this blog

Spring boot versions : Detailed explanation of the different versions and releases of Spring Boot (AI Generated)

download youtube videos java program ( AI generated)

Java Spring Framework versions and their major releases ( AI Generated )