Click to See Complete Forum and Search --> : tightVNC: VNC server closed connection
jrbishop79
06-27-2004, 10:19 PM
I'm trying to remotely control my Win2k Server form my Mandrake 10 Machine I installed TightVNC on both sides(linux and Windows) and when I try to connect to my Windows Machine I get the following:
[jrbishop:~]$ vncviewer 192.168.0.3
VNC server supports protocol version 3.3 (viewer 3.3)
Password:
VNC authentication succeeded
vncviewer: VNC server closed connection
What am I doing wrong?
hlrguy
06-27-2004, 10:35 PM
I have a memory of something similar, but it was about a year ago, and it hasn't come back to me. I *think* you need a :0 after the IP. Anyway, try that, and I will keep trying to remember, then when I stop trying, I will remember. :D
hlrguy
jrbishop79
06-27-2004, 10:46 PM
I tried using 192.168.0.3:0 and I got the same error... keep trying to remember :D
hlrguy
06-28-2004, 01:00 AM
Does the server log show anything about the problem? I haven't been able to remember. I am fairly sure that my problem was not specifying the :0.
Wait, now I remember. The VNC server was started in user mode, and the screensaver was set to lock the desktop when it kicked in. Once that happened, my VNC connection would die and I couldn't reconnect until the desktop was unlocked.
Check for running it is System mode instead of user mode.
http://www.realvnc.com/v4/winvnc.html#3
hlrguy
jrbishop79
06-28-2004, 05:44 PM
I didn't see System mode or user mode.. I'm using TightVNC rather than real VNC... And I don't even have the screensaver turned on over on the server side...
skubiszm
06-28-2004, 06:02 PM
Make sure you have the server running on the Win2K box. When it starts up it should tell you which display it is running on. You were close with :0, it actually starts at :1, which is the default. You can have multiple vnc servers running which would result in multiple displays, :1, :2, :3 etc.
Edit:
Actually, it does say that 0 is the default display, but whenever I start the server it always starts as 1. Make sure that you aren't running some sort of firewall on the Win2k box. Each display coresponds to a port.
0 = 5900
1 = 5901
2 = 5902
etc.
So make sure you can access those ports.
jrbishop79
06-28-2004, 10:28 PM
The server doesn't have a firewall, and the service is running....
[jrbishop:~]$ vncviewer 192.168.0.3:1
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
[jrbishop:~]$ vncviewer 192.168.0.3:5900
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
[jrbishop:~]$ vncviewer 192.168.0.3:5901
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
[jrbishop:~]$ vncviewer 192.168.0.3:5902
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
hlrguy
06-28-2004, 10:41 PM
What does the server log have to say? Also, the last log is different from the first in that you aren't getting 'authentication succeeded' anymore. Maybe start with running vnc server on the linux box, then connect to the server locally with vncviewer.
hlrguy
jrbishop79
06-28-2004, 10:53 PM
here is a sample of one (maybe a couple?) of failed attempts from my winvnc.log:
Mon Jun 28 22:39:26 2004
vncSockConnect.cpp : accepted connection from 192.168.0.253
vncClient.cpp : client connected : 192.168.0.253 (id 4)
Mon Jun 28 22:39:29 2004
vncService.cpp : SelectHDESK failed to close old desktop 38, error=170
vncDesktop.cpp : GetSystemPaletteEntries() failed.
vncServer.cpp : failed to initialize desktop object
vncDesktop.cpp : failed to ReleaseDC
I just set up a vnc server on the linux box and logged in locally. Got some interesting things happening on the screen, but it did work..
hlrguy
06-29-2004, 12:28 AM
Well, at least now you know it is a server problem. Let me guess, the interesting things on the Linux vnc server was a grey background and a simple xterm, very plain looking. Normal till you tell it which desktop to start. Anyway, no idea about the server problem. Failed to close old desktop? Maybe two trying to run at the same time?
I tried some google searches and found a few who have your problem, but no replies to the threads. About the only thing I can suggest is uninstall, then install RealVNC. They seem to be almost identical, but RealVNC is more mature.
hlrguy
jrbishop79
06-29-2004, 12:39 AM
Originally posted by hlrguy
Let me guess, the interesting things on the Linux vnc server was a grey background and a simple xterm, very plain looking. Normal till you tell it which desktop to start. Anyway, no idea about the server problem. Failed to close old desktop? Maybe two trying to run at the same time?
I basically got some interesting cascading terminal windows....windows spawning inside windows.... looked like a screensaver gone awry...
hlrguy
06-29-2004, 12:43 AM
Oh, well, I guessed wrong. Give RealVNC a try, and post back if you get it going. Love your flashing 12 PM. Ahhh, memories of my parents first VCR.
hlrguy
jrbishop79
06-29-2004, 12:52 PM
I installed RealVNC on the server and it works!!
and as for the flashin 12:00, that's my experience with linux... I can do all these cool things with it, but damned if I can't get the clock set...:D