program can now establish connection to server