After installing x11vnc there were the dreaded "unsupported security types" error message.
I tried several things, including disabling the "wayland vnc server" in " /etc/gdm3/custom.conf".
Nothing worked, in the end I just installed "lightdm" instead of the "gdm3". And after enabling screen sharing in the gui settings I had my vnc connection up and running again.