Check if the server is online before proceeding