Preparing for network communication