LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   when trying to vnc to server again, get connection refused. (https://www.linuxquestions.org/questions/linux-software-2/when-trying-to-vnc-to-server-again-get-connection-refused-4175592276/)

erik2282 10-26-2016 11:12 AM

when trying to vnc to server again, get connection refused.
 
Both debian 8 machines. Server machine uses x11vnc and client machine uses xtightvncviewer.
I can vnc into the server one time. But if I close that connection and try to vnc again, it gives this error:
Code:

erik@myclientcomputer:~$ vncviewer 10.25.1.100
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
erik@myclientcomputer:~$

To be able to vnc in again, I have to have to ssh in to the server and run x11vnc as the logged-in user and then I'll be able to vnc again.

Is there a way to make x11vnc always run in the background?

af7567 10-26-2016 12:43 PM

This is normal for x11vnc, it will exit after one connection then disconnect. Check the -forever option from the x11vnc man page, that will keep it running even after a disconnection.

I normally run x11vnc from inside screen so if my ssh session gets disconnected then x11vnc will continue to run


All times are GMT -5. The time now is 07:26 AM.