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. Database & SysAdmin
  3. System Admin
  4. IP Port monitor

IP Port monitor

Scheduled Pinned Locked Moved System Admin
questionjson
6 Posts 4 Posters 6 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.
  • L Offline
    L Offline
    Leo Smith
    wrote on last edited by
    #1

    I am trying to write a client app that can monitor IP ports. Like which ports are taken and what are they being used for. I have done some work with WinSock and Win32 networking API, but can't find anything about this. I would prefer a means to set a message if on a single port or multiple ports that fire when the port becomes active, but will settle for a port listener that will check the ports and tell me what is going on with them. Has anyone tried this before? Thanks. Leo T. Smith Senior Programmer/Analyst Hartwick College

    N L L 3 Replies Last reply
    0
    • L Leo Smith

      I am trying to write a client app that can monitor IP ports. Like which ports are taken and what are they being used for. I have done some work with WinSock and Win32 networking API, but can't find anything about this. I would prefer a means to set a message if on a single port or multiple ports that fire when the port becomes active, but will settle for a port listener that will check the ports and tell me what is going on with them. Has anyone tried this before? Thanks. Leo T. Smith Senior Programmer/Analyst Hartwick College

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      What operating system? Norm Almond Chief Technical Architect FS Walker Hughes Limited

      L 1 Reply Last reply
      0
      • L Leo Smith

        I am trying to write a client app that can monitor IP ports. Like which ports are taken and what are they being used for. I have done some work with WinSock and Win32 networking API, but can't find anything about this. I would prefer a means to set a message if on a single port or multiple ports that fire when the port becomes active, but will settle for a port listener that will check the ports and tell me what is going on with them. Has anyone tried this before? Thanks. Leo T. Smith Senior Programmer/Analyst Hartwick College

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Try look at the open Source project WinDump (for Windows) or TcpDump (for unix). It sniffs all network trafic based on filters! But you have the source and can make your own filters..... http://www.tcpdump.org/ http://netgroup-serv.polito.it/windump/ Cheers, Frank

        1 Reply Last reply
        0
        • N NormDroid

          What operating system? Norm Almond Chief Technical Architect FS Walker Hughes Limited

          L Offline
          L Offline
          Leo Smith
          wrote on last edited by
          #4

          The OS is Actually any of the Win32 Platforms. I will use the Win32 API's to detect OS, and the whichever code is necessary (UniCode conversion also is not an issue). I would prefer API calls or direct TCP/IP functions over MFC Wrappers. Leo T. Smith Senior Programmer/Analyst Hartwick College

          N 1 Reply Last reply
          0
          • L Leo Smith

            The OS is Actually any of the Win32 Platforms. I will use the Win32 API's to detect OS, and the whichever code is necessary (UniCode conversion also is not an issue). I would prefer API calls or direct TCP/IP functions over MFC Wrappers. Leo T. Smith Senior Programmer/Analyst Hartwick College

            N Offline
            N Offline
            NormDroid
            wrote on last edited by
            #5

            Look at the "IP Helper" stuff on MSDN! There's a whole section on it. Norm Almond Chief Technical Architect FS Walker Hughes Limited

            1 Reply Last reply
            0
            • L Leo Smith

              I am trying to write a client app that can monitor IP ports. Like which ports are taken and what are they being used for. I have done some work with WinSock and Win32 networking API, but can't find anything about this. I would prefer a means to set a message if on a single port or multiple ports that fire when the port becomes active, but will settle for a port listener that will check the ports and tell me what is going on with them. Has anyone tried this before? Thanks. Leo T. Smith Senior Programmer/Analyst Hartwick College

              L Offline
              L Offline
              Lim Bio Liong
              wrote on last edited by
              #6

              Hello Leo, There is a very good article by Ton Plooy in the February 1998 edition of the Windows Developers' Journal. The title is : "Scanning Internet Ports". A sample program with full source codes is also given. The following is the link to the article : http://www.wdj.com/articles/1998/9802/9802b/9802b.htm?topic=articles I believe the sample program will be perfect for you. Best of luck. Regards, Bio.

              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