Connection refused – tcp socket in linux [closed]

listenfd = lacz_tcp(wiadomosc->port);

From what I can tell, the port has not been initialized before you call bind. Log the port to be sure that the server is listening on the correct port.

Leave a Comment