How to get all "in use" ports on a windows machine - Not a programming question.
-
So, I've got a port on my machine that returns a WSAEADDRINUSE error when i try to Listen on it. But the port doesn't show up in netstat. How do I find out what app is using the port? I searched sysinternals for something but I couldn't find anything useful there. seems odd since everything there is useful so I'm probably using the wrong tool. Ideas/Thoughts/Suggestions?
-
So, I've got a port on my machine that returns a WSAEADDRINUSE error when i try to Listen on it. But the port doesn't show up in netstat. How do I find out what app is using the port? I searched sysinternals for something but I couldn't find anything useful there. seems odd since everything there is useful so I'm probably using the wrong tool. Ideas/Thoughts/Suggestions?
-
Sysinternals TCPView should tell you. http://technet.microsoft.com/en-gb/sysinternals/bb897437[^]
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
Nope, doesn't show up there either (thats one that I already tried) TCPView provides a more informative and conveniently presented subset of the Netstat program that ships with Windows. Since it's a subset of netstat, it won't show anything that netstat doesn't show.
-
Nope, doesn't show up there either (thats one that I already tried) TCPView provides a more informative and conveniently presented subset of the Netstat program that ships with Windows. Since it's a subset of netstat, it won't show anything that netstat doesn't show.
-
should do. What netstat command did you use, it should also show the listening ports; netstat -a -b
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
netstat -ano Thats the point of the quandry. The port isn't in listen status. It seems as though some app has bound it but not started listening. There is a whole range of about 20 ports around the range I need to use that are in use but don't show up in netstat.
-
netstat -ano Thats the point of the quandry. The port isn't in listen status. It seems as though some app has bound it but not started listening. There is a whole range of about 20 ports around the range I need to use that are in use but don't show up in netstat.
-
Well i think it is time you hit google, because FIIK :suss:
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
Lol. Even google has failed me in this endeavor (so far). It seems that you and I think alike. Thanks anyway. I'm starting to think there is a rootkit out there that is using these ports and causing problems but I really don't have any basis for that guess other than paranoia.