Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How to get all "in use" ports on a windows machine - Not a programming question.

How to get all "in use" ports on a windows machine - Not a programming question.

Scheduled Pinned Locked Moved The Lounge
questionhelptutorialdiscussion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kinar
    wrote on last edited by
    #1

    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?

    D 1 Reply Last reply
    0
    • K kinar

      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?

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      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

      K 1 Reply Last reply
      0
      • D DaveAuld

        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

        K Offline
        K Offline
        kinar
        wrote on last edited by
        #3

        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.

        D 1 Reply Last reply
        0
        • K kinar

          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.

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #4

          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

          K 1 Reply Last reply
          0
          • D DaveAuld

            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

            K Offline
            K Offline
            kinar
            wrote on last edited by
            #5

            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.

            D 1 Reply Last reply
            0
            • K kinar

              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.

              D Offline
              D Offline
              DaveAuld
              wrote on last edited by
              #6

              Well i think it is time you hit google, because FIIK :suss:

              Dave Find Me On: Web|Facebook|Twitter|LinkedIn


              Folding Stats: Team CodeProject

              K 1 Reply Last reply
              0
              • D DaveAuld

                Well i think it is time you hit google, because FIIK :suss:

                Dave Find Me On: Web|Facebook|Twitter|LinkedIn


                Folding Stats: Team CodeProject

                K Offline
                K Offline
                kinar
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups