Remote display server is not supported (e.g Wayland)

Good Evening team,

I have installed Anydesk Remote Desktop Application on my system Running on Rocky Linux 9. I wanted to remotely access my friend who is running on CentOS-Stream-8.

However, I get an error “Remote display server is not supported (e.g Wayland)

Doing a simple google search, I see an article that states that I can edit the **/etc/gdm/custom.conf
** configuration file and making the following changes.

GDM configuration storage

[daemon]

Uncomment the line below to force the login screen to use Xorg

WaylandEnable=false

[security]

[xdmcp]

[chooser]

[debug]

Uncomment the line below to turn on debugging

Enable=true

am then to restart my server.

This did not solve my problem. PLease help me.