Find which application/service is running in a port – Windows

April 20th, 2010 | 12 Comments | Posted in Servers, Softwares

Most of the applications are using standard ports, some cases user or application will assign different ports for the application. For example Port 80 is the default port for IIS, if you are trying to start a different web applications it will say error message like “port 80 already in use” . Or you start the third-party web application before IIS starts. IIS will give errors. skype and XAMPP Port conflict is the main example for that.

In these situations we have to find out which application is running on a particular port. Here is the step by step to find out this.

First identify the listening ports in your Server

Go to command prompt and type

Netstat –ano | find “0.0.0.0”

You can see the list here

netstat with process id

Find out the corresponding Process ID from the line

Now open the task manager

Go to “View” and “Select Columns”

Put a Tick mark on “PID (Process identifier)”

taskmanager columns

Now you can see the application with process ID.

Here Port 80 is used by Apache ( httpd.exe )

taskmanager process id

Leave a Reply 31668 views, 17 today |

Author :

I am a Technology Blogger, I Blog about technology related articles, Active in online and offline tech communities
Follow Discussion

12 Responses to “Find which application/service is running in a port – Windows”

  1. vais Says:

    Nice tip

  2. Matt Says:

    Can also use ‘netstat -anob’ to show the executable name (doesn’t work with the ‘| find 0.0.0.0′ suffix though because the executable name is displayed on a separate line)..

  3. Girishkumar Says:

    Thanks, very usefull tip

  4. Albin Sebastian Says:

    Hi @Matt

    Thanks for your contribution; it is easier than above steps. Looking forward for your valuable comment in future also

  5. Jivin John Says:

    could you please advise how to do the same for Linux…

  6. Albin Sebastian Says:

    Hi @ Jivin
    Please read my latest post about linux http://www.binbert.com/blog/?p=484

  7. Shajan Jacob Says:

     netstat -anob is really good to find this

  8. lilly Says:

    thank you , it really worked and i was able to find what service was bound to port 80

  9. yacam Says:

    when i typed the command in the command prompt,i get the reply ‘Netstat’ is not recognised as an internal or external command,operable in a batch file.Please some one should help me as i really need Apache to run

  10. sailu Says:

    When I did netstat i see that port 80 has PID 1592. I am not able to find the 1592 in PID  in task manager. That is so weird.

    I am not able find what is using port 80 causing issues for me to run tomcat server.

    Please advise. 

  11. Albin Sebastian Says:

    Are you checking process from all users. you can see a tick mark in task manager “Show process from all users” This may help you.

Trackbacks

  1. Know the service running in a port – Linux | Binbert  

Leave a Reply

You must be logged in to post a comment.


More in Servers, Softwares (48 of 64 articles)