Anydesk remote server display not supported e.g Wayland

I downloaded Anydesk (4.0.1 64bit) on both my laptop and desktop and when I run it from one pc and try to connect to the other I get the following error

remote server display not supported e.g Wayland.

Both PCs are running Ubuntu 18.04.2. I tried search for a solution, I found a suggestion to disable Wayland in the file /etc/gdm3/custom.conf setting WaylandEnable=false but nothing changed.


Solution 1:

After installing Anydesk on my Ubuntu 18.04 server and trying to connect from a Mac, I would get a display_server_not_supported error. I was able to resolve this by going into the /etc/gdm3/custom.conf file and changing:

[daemon]
    # Enabling automatic login
    AutomaticLoginEnable=true
    AutomaticLogin=$USERNAME

After rebooting the Ubuntu server, Anydesk now connects and shows the login screen and I can login just fine.