Connecting diary to server