1. Open a command prompt.
2. Type netstat -o -n -a | findstr 127.0.0.1:8008
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivxdujDdMuTTnmUikqEJWNwu-cv9rZs2z-5CDxlYN3_3seqjVUyC4xVlud1ChdARg8MX57VWUY5mv9Z5zcnWpR6sPfZNxtp0X0y88lTzZEPhm2IrlT71vAi5AqBCHWH35NNc25_7HxHUs/s320/1.png)
3. Find the last column in the displayed result. It is the PID of the process which listening to port 8008.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqbghrzaGgHrjyc18OflFoKEcd9AlkSpxKs9nSbsik-SMzU7rXcBdzy_KbSIhcE-N-YzL8DKfolQKg-sMOLw7_kmN3sp6QZVgqro3LW8DVtcZnd89fhmHYI4er8UrXHyzNU5fTeR3m5X4/s320/2.png)
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.
Thanks for this. I had no idea about "findstr" command on windows. Always installed windows version of grep. But this is definitely much easier.
ReplyDeleteIt is easier to just run: netstat -anb
ReplyDeleteIt will give you the name of the executable.
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... :-)
ReplyDeleteAlso, tcpview from Sysinternals.
ReplyDeleteUnix equivalent: lsof -i :8080