I don’t know if this is the correct forum for this question, so if not perhaps someone could point me to the right spot. Anyway, I am trying to run a connection-oriented client program on RedHat 7.2. The client IP is 192.168.254.87 and I can ping it from the server, and can ping the server from the terminal, as well as connect to it through telnet. However, when I try and connect() to the terminal, I get a connection refused with errno set to ECONNREFUSED. Upon reading the man page for connect() I see that ECONNREFUSED means “no one is listening on the remote address”. If I can ping, why can I not connect() ?

Reply via email to