X11vnc + systemd on rocky9

Thanks for reply and for providing your systemd info - unfortunately it still does not work.

I’ve disabled wayland, and when I run x11vnc manually via the GUI, connections are accepted, so it is not a firewall issue.

the service appears to be running, however when attempting to connect, nothing happens and just times out.

Besides disabling wayland, the config is very much vanilla.

[root@hostname ~]# uname -r
5.14.0-162.12.1.el9_1.0.2.x86_64

[root@hostname~]# sudo systemctl status vnc.service
● vnc.service - VNC server for the current X11 session
     Loaded: loaded (/etc/systemd/system/vnc.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2023-02-21 12:35:19 JST; 1min 29s ago
   Main PID: 1464917 (x11vnc)
      Tasks: 1 (limit: 818975)
     Memory: 3.1M
        CPU: 3.471s
     CGroup: /system.slice/vnc.service
             └─1464917 /usr/bin/x11vnc -auth guess -cursor arrow -display :0 -forever -loop -noallinput -nobell -nodpms -noipv6 -nomodtweak -nopw -norc -nossl -noxdamage -noxfixes -noxkb -noxrecord -o /var/log/x11vnc.log -reopen -repeat -rfbauth /root/.vnc/x11vnc.passwd>

Feb 21 12:36:39 hostname x11vnc[1464917]:  --- x11vnc loop: sleeping 2000 ms ---
Feb 21 12:36:41 hostname x11vnc[1464917]:  --- x11vnc loop: 33 ---
Feb 21 12:36:42 hostname x11vnc[1464917]:  --- x11vnc loop: waiting for: 1468574
Feb 21 12:36:42 hostname x11vnc[1464917]:  --- x11vnc loop: sleeping 2000 ms ---
Feb 21 12:36:44 hostname x11vnc[1464917]:  --- x11vnc loop: 34 ---
Feb 21 12:36:44 hostname x11vnc[1464917]:  --- x11vnc loop: waiting for: 1468688
Feb 21 12:36:44 hostname x11vnc[1464917]:  --- x11vnc loop: sleeping 2000 ms ---
Feb 21 12:36:46 hostname x11vnc[1464917]:  --- x11vnc loop: 35 ---
Feb 21 12:36:47 hostname x11vnc[1464917]:  --- x11vnc loop: waiting for: 1468802
Feb 21 12:36:47 hostname x11vnc[1464917]:  --- x11vnc loop: sleeping 2000 ms ---