avast isn’t trying to connect to the devices, it is simply scanning the data traffic on the FTP port.