Tuesday, 14 August 2012

How to check the processes in use from command prompt

Many a times, while configuring the web server, we may have to configure the connection port and server port. If the port is already in use then we get error.

The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).


To fix this, we need to find the running process in that particular port.
1. Type netstat -ao in the command window. This is will show the port and PID in use.
2. Check the task manager, for the respective PID. This shows the program blocking the port. You may then decide if it is better to stop the program or change the port number...

1 comment:

  1. there is a tool called tcpview tool from microsoft, It helps in identifying which process is using which port, and which is maintaining open connections.

    ReplyDelete

Got to say something?...Leave your comments here