Changing port on Desktop Sharing

I noticed that the discussion on https://discourse.gnome.org/t/possible-to-use-custom-ports-for-desktop-sharing-remote-login/21884 is closed. The port for Remote Login is correctly set to 3389. I have been trying to change the port for Desktop Sharing from its current blank to 3390. but I get:

manager@Server:~$ grdctl rdp set-port 3390
[17:12:36:612] [127893:0001f395] [ERROR][com.freerdp.crypto] - [x509_utils_from_pem]: BIO_new failed for certificate
RDP server certificate is invalid.
manager@Server:~$ systemctl --user restart gnome-remote-desktop.service
manager@Server:~$ systemctl --user status gnome-remote-desktop.service
â—Ź gnome-remote-desktop.service - GNOME Remote Desktop
     Loaded: loaded (/usr/lib/systemd/user/gnome-remote-desktop.service; disabled; preset: enabled)
     Active: active (running) since Sun 2025-08-17 17:12:55 BST; 34s ago
   Main PID: 127957 (gnome-remote-de)
      Tasks: 10 (limit: 9301)
     Memory: 14.4M (peak: 15.1M)
        CPU: 71ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/gnome-remote-desktop.service
             └─127957 /usr/libexec/gnome-remote-desktop-daemon

Aug 17 17:12:55 Server systemd[7224]: Starting gnome-remote-desktop.service - GNOME Remote Desktop...
Aug 17 17:12:55 Server gnome-remote-desktop-daemon[127957]: [17:12:55:832] [127957:0001f3d5] [ERROR][com.freerdp.crypto] - [x>
Aug 17 17:12:55 Server gnome-remote-de[127957]: RDP server certificate is invalid
Aug 17 17:12:55 Server systemd[7224]: Started gnome-remote-desktop.service - GNOME Remote Desktop.
Aug 17 17:12:55 Server gnome-remote-de[127957]: RDP TLS certificate and key not yet configured properly
lines 1-15/15 (END)```

Refer following thread. It discusses the topic in detail.

I’ve followed the instructions for Invalid Certificate. I now see port 3390 for Desktop Sharing and port 3389 for Remote Login works (if logged in, then given option to Force Stop on existing session which gives Login screen). However, Desktop Sharing says "Cannot connect to server 192.168.2.10, the server’s NAT address). The Login Details on the Desktop Sharing are set correctly.

Refer https://discourse.gnome.org/t/using-the-ui-to-allow-rdp-connections/24914/2 for debugging connection issues. For fedora, you might want to open firewall port as explained in the link.

I deleted the current connection in Remmina and created it again and all Ok. My guess is that it needed a connection to the new certificate.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.