How to detect ports in the system?

Discussion in 'MFC' started by Gopinath, Jul 19, 2007.

  1. Gopinath

    Gopinath New Member

    Joined:
    Jun 24, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi all,

    I'm developing an application, which require to detect ports in the system. exactly what my requirement is i need to detect if some device ( modems) or application tried to connect to
    some port then i should be able to display a message box.

    could any one help me in this regard.

    Thanks in advance.
     
  2. kush_2207

    kush_2207 New Member

    Joined:
    Jun 26, 2007
    Messages:
    49
    Likes Received:
    1
    Trophy Points:
    0
    In windows as well as linux theres a command known as netstat -a which lists out all the ports in listening state......
    Now you need to make a call to these command......Refer to the documentation of the language you are using.....
    There must be something that is provided within the language library....that depends totally on language which you are using...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice