VNC Server Fails after Update

Immediately after the latest update (still 9.4) my vncserver no longer works. I have verified that nothing in the configuration has changed. The firewall-cmd shows vnc-server runnning and my selected port of 5902 is open.
systemctl status vncserver@:2 shows loaded, enabled and running.
When I try to connect, the client says, “Timed out waiting for a response from the computer”
The command: nc -zw3 my.ip.number.here
5902 returns error code 1.
I have to think I’m missing something obvious, but nevertheless, I’m missing it.
Suggestions greatly appreciated.

Is nc timing out or getting refused? Is there a difference when you run the nc on the host itself rather than the client?

It appears that for some reason, after the last upgrade, vncserver decided to start parsing my $HOME/.profile file. Since I never use it, I simply deleted it and everything started immediately working again.

hi JMR,
may i know which VNC server you installed in version 8.
tiger and x11 both are not failing!

is there any good tutorial for installing the vnc server and starts well on every reboot.

Hi,
I had the exact same symptoms as original post above. For me the problem was the localhost setting in the config was requiring additional tunneling; good security feature I suppose. To remove this feature simply set localhost=no in the config file. My VNC works OK now as per Alma8 builds.

hi NGR,

Can you share me the url that you followed and what was the work around that was followed to make it run.

Hi Babji_M,
I’m no Alma expert but I found the following links useful: Guide to Install VNC Server on AlmaLinux 9
…and
unable to connect to socket: Connection refused(10061) · Issue #117 · TigerVNC/tigervnc · GitHub With the .vnc/config file set to localhost no there was no need to access via SSH tunneling; which is how we used VNC with Alma 8. Hope this helps!

Thanks NGR,
let me try and get back to you on this.

Thanks for the inputs NGR,
Iam able to access the same machine via multiple VNC’s logins wrt different users and as well modify the logins for Gnome Environment too.

OK that’s great. This took some time but our VNC on Alma9 is also working stable. Gone are the old RHEL days when VNC just took a few click boxes to enable.
Cheers…