AIX

 View Only
Expand all | Collapse all

How to get all open TCP and UDP ports on AIX using C

  • 1.  How to get all open TCP and UDP ports on AIX using C

    Posted Wed August 24, 2022 11:46 AM
    I would like help finding out how to get all open TCP and UDP ports on AIX using C.

    More specifically, since I realize that is a big ask, I am looking to be pointed to which AIX system calls I should use to get this information, and some pointers on how I might use these system calls to get this information.

    ------------------------------
    Shane Bishop
    ------------------------------


  • 2.  RE: How to get all open TCP and UDP ports on AIX using C

    Posted Wed August 24, 2022 12:20 PM
    You can try to connect() to them or bind() sockets to those ports. Pretty typical UNIX sockets code, I suspect you can find lots of examples of these on the web.

    ------------------------------
    Dave Marquardt
    Sr. Software Engineer
    IBM
    Austin TX
    ------------------------------