From 5b855d21bd40f589ede2ece2381e39b8c3600fe1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 20 Feb 2023 19:02:50 +0100 Subject: [PATCH] added missing addr to client --- src/chat/client/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chat/client/main.c b/src/chat/client/main.c index e4b2722..ac452eb 100644 --- a/src/chat/client/main.c +++ b/src/chat/client/main.c @@ -30,6 +30,7 @@ int main(void) struct sockaddr_in server_addr; server_addr.sin_family = AF_INET; server_addr.sin_port = htons(SERVER_PORT); + server_addr.sin_addr.s_addr = INADDR_ANY; int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT