LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2016, 11:12 AM   #1
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
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?
 
Old 10-26-2016, 12:43 PM   #2
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
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
 
  


Reply

Tags
vnc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vnc server connection refused and port appears closed postcd Linux - Security 5 05-24-2014 10:11 PM
[SOLVED] vnc server used to work, suddenly stopped working with connection refused errors lpallard Linux - Software 2 02-23-2011 12:14 AM
VNC connection refused dragunu Linux - Newbie 3 11-11-2006 10:38 AM
VNC - Connection refused silkyd Linux - Networking 12 03-29-2006 08:09 AM
VNC – Connection Refused markpadam Linux - Security 5 05-07-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration