How to we get Apache port number


How do we get running Apache port number in my c++ program.

any idea?

+1 kbw. Specifically "netstat -a -b" to show all connections AND listening ports and to group them by the executable that created each connection. Or if you're looking for a shiney GUI TCPView in the Sysinternals suite is a good choice:
Topic archived. No new replies allowed.