Windows : check and kill the port # process

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

  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       6184

  TCP    [::]:8080              [::]:0                 LISTENING       6184

  TCP    [::1]:8080             [::1]:62420            ESTABLISHED     6184

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

  TCP    [::1]:62420            [::1]:8080             ESTABLISHED     5300


C:\Windows\System32>taskkill /F /PID 5300

SUCCESS: The process with PID 5300 has been terminated.


C:\Windows\System32>

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

  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       6184

  TCP    [::]:8080              [::]:0                 LISTENING       6184

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


C:\Windows\System32>taskkill /F /PID 6184

SUCCESS: The process with PID 6184 has been terminated.


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

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


C:\Windows\System32>taskkill /F /PID 0

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

Reason: This is critical system process. Taskkill cannot end this process.

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 )