Check for WiFi connection before trying to scan for servers or clients.