I created my own vnc-service for xinetd (PC_A) and opens a custom vnc connention to my vnc-server (PC_B).
When I reboot PC_A an make a telnet from PC_B to PC_A nothing happens. When I restart xinetd on PC_A from PC_B with ssh (ssh root@PC_A /etc/init.d/xinetd restart) and try it again nothing happens.
When I use a browser to call up PC_A the following error message will appear: Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified
Error: Can’t open display: :0.0
But when I type “rcxinetd restart” on PC_A’s keyboard as root and telnet PC_A from PC_B or use a browser to call up PC_A everything works fine and a vnc-connention builds up.
Ofcourse xinetd must listen to the port after reboot, when you do not change the xinetd configuration a restart of xinetd is not needed.
You can check if someone (xinetd) is listening to the port you configured by using
I do not know much (maybe even nothing) about VNC. But you were trying to guess if **xinetd **did what it should, by accessing from outside I tried to give you a method from inside the system to see if it LISTENs. So you can target the problem better.
BTW
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified
Error: Can’t open display: :0.0
points to the X-server blocking access to outsiders wanting to open a window. Either **xhost + ** (on the X-server) or more refined allowance using MitMagicCookies will probable solve this (see man xhost).