Cannot get Gnome Remote Desktop to work

I’m sure it was working before but I’m having no luck at all now.

The current behaviour is that Remmina says it cannot connect to the RDP server.

Using “ss -l” I can see that it is running on 3389. I have the firewall port opened, and even disabled the whole firewall.

I believe it should be enabled by default in gnome but I added

environment.systemPackages = with pkgs; [
    pkgs.gnome.gnome-remote-desktop
  ];
  services.gnome.gnome-remote-desktop.enable = true;

to be sure.

I also tried the following with slightly different behaviour but still no luck

services.xrdp.enable = true;
services.xrdp.defaultWindowManager = "gnome-remote-desktop";
services.xrdp.openFirewall = true;

With xrdp enabled I got as far as the login but then it goes black for a few seconds before the window closes.

This is using NixOS 24.05 and fully updated. My requirement is to be able to log in to an existing Gnome session

Try with that maybe:

{
  environment.systemPackages = with pkgs; [
    gnome.gnome-session
  ];

  # https://nixos.wiki/wiki/Remote_Desktop
  services.xrdp = {
    enable = true;
    openFirewall = true;

    defaultWindowManager = "gnome-session";
  };
}

Same behaviour as previously with xrdp. Login prompt then black screen then the window closes.

I assume there are logs for this? Do you know where I can find them?

xrdp logs in journalctl have the following message after the window dies

Jul 16 12:57:43 hostname xrdp[2414]: --port parameter found, ini override [3389]

I should have looked there earlier but the option in the Gnome Settings Sharing panel is not even there so I suspect this is the hub of the problem

Can you share settings in Remmina to access the remote host?
I never had to add any port using default / basic setting in Remmina

Here’s a profile for a test remote (LXC container):