diff --git a/src/chat/client/main.c b/src/chat/client/main.c index 3938af1..73aa0ba 100644 --- a/src/chat/client/main.c +++ b/src/chat/client/main.c @@ -34,11 +34,14 @@ int main(void) server_addr.sin_port = htons(SERVER_PORT); server_addr.sin_addr.s_addr = INADDR_ANY; + //GET IP printf("Welcome.\n\nEnter IP Address:\n>>> "); getline(&line, &line_length, stdin); server_addr.sin_addr.s_addr = inet_addr(line); + printf("###################\n\n"); + int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT if (connectStatus < 0) why2_die("Connecting failed.");