On linux, how to check if port is in listen state without trying to connect.

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-31T09:49:18Z Indexed on 2010/05/31 9:52 UTC
Read the original article Hit count: 154

Filed under:
|
|

Hi,

How do I check with C if a port on my local machine (if required by passing an IP or interface, too), is in listen state? I don't want to connect to this port for checking because I don't want to irritate the service behind this port.

I want to use this to add the missing net.tcp.listen item to Zabbix.

© Stack Overflow or respective owner

Related posts about c

    Related posts about linux