How to kill a currently using port on windows machine?

How to find Process Id of Port and How to kill on Windows machine?

To find the process Id of port, you can follow below steps.

Step-1:
                Run a command prompt as a Administrator.
                Type cmd command in windows search box. It will display command prompt icon, right click on command prompt icon and select Run as Administrator option. Then It will display alert with Yes and No options. Please click on Yes button. Then command prompt will open with administrator access.
Step-2:
                Then run a below command.
                I want 8080 port using processer id, because of that, in this example using 8080 as a port number.
                Syntax: 
netstat -ano | findstr :port_number
                Example: 
netstat -ano | findstr :8080
                It will display 8080 port using process id like below.
   
Step-3:
                Then execute below command using identified PID (Process ID)
                Syntax: 
taskkill /PID processid_of_port_number /F
                Example: 
taskkill /PID 1234 /F




How to kill a currently using port on windows machine? How to kill a currently using port on windows machine? Reviewed by Gurugubelli Technologies on August 10, 2017 Rating: 5

No comments:

Powered by Blogger.