Quantcast
Channel: How To Do Everything | How To Tutorials » Windows XP
Viewing all articles
Browse latest Browse all 10

How to Find Which Port is Used By Which Application Using CMD in Windows

$
0
0

All applications in windows which has access to another application has a port number associated with them by Windows or their Developers. In some cases you want to know the application using your desired port. For example if you want to use MSSQL and MYSQL in other case IIS, WAMP and XAMPP at same time. To use that port

  1. You have to kill the process. In many cases it succeeds and time saving to perform
  2. You can stop their services from either Services manager included for application or by Windows default Service Manager.
  3. You can uninstall the application using that port. This method is not recommended, If you don’t want to use that application in future then do it.
  4. To use both Applications at the same time you can change the port used by one application.

By following method you can find out the application:

  1. Click on “Start Menu” then search for “Command Prompt”.
  2. Right click on the “Command Prompt” then choose “Run as administrator”.
    Extend_1
  3. In “Command Prompt” type the following command:

    netstat –aon


    This command will give list of all the IP’s and port numbers used in your System.
    If you want to refine your result then use following command instead of above command:

    netstat –aon | findstr 0.0:80


    Above case is used to find the application which is using the 80 port number you can change port number which you want to find on your system. “|” is used to refine the result which is a built-in function of “Command Prompt”.

  4. To kill the process using that port use the following command in “Command Prompt”:

    taskkill /F /PID 80


    Change the PID value from 80 to your required port value.

For more information about “netstat” command click here.

 

Enjoy…


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images