When checking for wakeup mode, we also check if it has a valid IP address and valid port number