Wait for server response