I would like you to help me with the following problem. I will try to give as many details as possible.
I recently installed a vnc server on a Centos8 virtual machine. I have done all the configuration steps, which are in this file, (which by the way is the one that vnc recommends using, since I think vnc was updated and the configuration method is not the same as before). Once this is done, the server is working without problem. (apparently)
The problem arises when I want to connect from another virtual machine (Fedora), the server rejects the connection and gives the following error:
IMAGE
In the server I execute the following instruction
vncviewer localhost:5901
I have consulted in some forums, and it is mentioned that it is a firewall problem that does not let the communication pass. So disable the firewall and Selinux)on both virtual machines, however the problem persists.
I know that the server is running correctly, because I get the following output.
(root@localhost andres)# systemctl status vncserver@:1
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; enabled; vendor preset:>
Active: active (running) since Mon 2021-03-01 13:21:07 EST; 1h 7min ago
Process: 978 ExecStart=/usr/libexec/vncsession-start :1 (code=exited, status=0/SUCCE>
Main PID: 994 (vncsession)
Tasks: 1 (limit: 11260)
Memory: 1.5M
CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
‣ 994 /usr/sbin/vncsession andres :1
I also have these ports assigned, which tell me that the server is listening
(root@localhost andres)# netstat -tunlp | grep 5901
tcp 0 0 127.0.0.1:5901 0.0.0.0:* LISTEN 1381/Xvnc
tcp6 0 0 ::1:5901 :::* LISTEN 1381/Xvnc
Maybe it looks like a duplicate question from the following forum. And indeed it is, I just can’t find a relation, since vnc has been updated and the configuration is not the same (that is, to start the server, I can no longer put the command “vncserver”), and I assume that the solution will not be the same