Identify Ports Used by Applications

Recently while working on a project one of my applications refused to work as the required port was in use by some other application. This left me out of clue as to how to find out which application was using the same port  and causing the issue. In this post we'll talk about finding out whether a required port is in use by some other application or not.

For clarification we'll refer to port 8081. So lets find out which application is using the port.

To find out which application is running on port 8081 type the following command in Command prompt:

netstat -o -n -a | findstr 0.0:8081

The result should look something like this:


The result mean an application with PID(Procedd Identifier) 1868 is using port 8081 currently.

So now lets find out the application that corresponds to this PID.

Open Task Manager->Processes

Click on View-Select Columns-> Select PID-> OK

Now, look for the PID and you should be able to see the application thats using the port 8081 currently.

Comments

Popular Posts