Friday, October 15, 2010

How to find the process running on port 8008?

1. Open a command prompt.

2. Type netstat -o -n -a | findstr 127.0.0.1:8008

3. Find the last column in the displayed result. It is the PID of the process which listening to port 8008.

4. Open task manager and inside process tab find PID column. If you cannot see PID column, go to view>select columns and check PID check-box.

5. Arrange processes by PID then find the PID resulted previously and see the corresponding process.


4 comments :

  1. Thanks for this. I had no idea about "findstr" command on windows. Always installed windows version of grep. But this is definitely much easier.

    ReplyDelete
  2. It is easier to just run: netstat -anb

    It will give you the name of the executable.

    ReplyDelete
  3. Thanks a lot for your comments...I was stuck up in the problem $subject and came up with this solution... There might be some other ways as well... :-)

    ReplyDelete
  4. Also, tcpview from Sysinternals.

    Unix equivalent: lsof -i :8080

    ReplyDelete