LinuxQuestions.org
Visit Jeremy's Blog.
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: TX
Distribution: mint,deb,centos
Posts: 818

Rep: Reputation: 228Reputation: 228Reputation: 228
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: 212

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:22 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