Thank you, worked nicely for me on Ubuntu 22.04. (after the edits I first tried to just restart AnyDesk service, which didn't work but the restart did.
in debian 11 i can't find the file "/etc/gdm3/custon.conf, i created the file i added the settings and even so anydesk is not accessible, any solution for debian?