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