LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2008, 03:28 PM   #1
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Rep: Reputation: 16
tightVNC dropping connection


Hi all. I have just set up a VNC server on a Vista machine (I wish it was Linux, but it is not my computer). I have tried testing the connection on an in house network. I get dropped before it accepts my connection request. I don't think it is a firewall as I have shut them all down. I have no idea what to do. Here is the message I get.
Quote:
Network Error: remote service dropped the connection
or this if I try to use the actual viewer
Quote:
Connection closed
Any ideas?
 
Old 11-23-2008, 02:41 AM   #2
AndrzejL
Member
 
Registered: Jun 2008
Distribution: PCLinuxOS
Posts: 38

Rep: Reputation: 15
Hi Bud.

How do you connect? vncviewer 192.168.1.3:0 this is the way I am doing it. Adding 0 or 1 after the IP solves the problem sometimes.

Andy
 
Old 11-23-2008, 08:36 AM   #3
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Original Poster
Rep: Reputation: 16
I tried using the standard ports (5800,5900). The viewer and web page viewer are letting me connect, but the remote computer kicks me off before it brings up a desktop. Here is how I type it in.
Quote:
192.168.1.101:5800
I have no idea why it won't let me in. According to the readme, tightVNC should work with no config changes made. I only changed the login password. I am at a loss.
 
Old 11-23-2008, 08:50 AM   #4
AndrzejL
Member
 
Registered: Jun 2008
Distribution: PCLinuxOS
Posts: 38

Rep: Reputation: 15
I was doing exactly the same mistake.

[hagrid@WISHMASTER ~]$ nmap 192.168.1.3

Starting Nmap 4.53 ( http://insecure.org ) at 2008-11-23 14:42 CST
Interesting ports on XXXXXXXXXX (192.168.1.3):
Not shown: 1709 closed ports
PORT STATE SERVICE
5900/tcp open vnc

Nmap done: 1 IP address (1 host up) scanned in 4.257 seconds
[hagrid@WISHMASTER ~]$ vncviewer 192.168.1.3:5900
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server

BUT when I do

[hagrid@WISHMASTER ~]$ vncviewer 192.168.1.3:0
Connected to RFB server, using protocol version 3.7
Enabling TightVNC protocol extensions
Performing standard VNC authentication
Password:

I am typing in a passwd and it lets me in.

Type in vncviewer 192.168.1.101:0

or vncviewer 192.168.1.101:1

Hope I have helped

Andy

Last edited by AndrzejL; 11-23-2008 at 08:52 AM.
 
Old 11-23-2008, 04:33 PM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Yeah the number after the ip is the 'Display' you want to connect to not the port number, the vnc server is running an X server so it gets assigned a display number just like your typical desktop X server. This allows you to run any number of vnc servers on a box, the display number just increases with each one you fire up.
 
Old 11-23-2008, 09:32 PM   #6
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Original Poster
Rep: Reputation: 16
I tried just using 0 instead of a port number. It gives me the password prompt, but I get kicked off as soon as a connection is established. When I try from the web browser, the same thing happens. As soon as I give my password, I get kicked off. I simply get an error message saying connection closed.
 
Old 11-23-2008, 09:45 PM   #7
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Are you giving it the correct password?
 
Old 11-24-2008, 05:50 AM   #8
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Original Poster
Rep: Reputation: 16
It should be the right password. I set up the server and even changed it to a generic password when I couldn't get in the first time. I wouldn't gaurentee that my configuration is being saved. I have tried accessing the loopback to the server and I get an error saying that loopback is disabled even though I am pretty sure I set it up to do loopback. Do you know what the default password is? That might let me in.
 
Old 11-24-2008, 09:21 AM   #9
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
As far as I know there isn't a default password for tightvnc, but that might be different for the windows server. Does the server log somewhere? That might provide some additional detail as to why the connection is dropping.
 
Old 11-24-2008, 09:43 PM   #10
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 164

Original Poster
Rep: Reputation: 16
Thanks for the help. I will try to check the logs. The whole reason I tried to set this up was that I can not access this machine very often. It is for a non-profit organization. Now that school has started, I can't get there. They all go home before school is over, so I can only get there on weekends sometimes.

I know there is a default password. I had to remove it to put the new one in. I wish they had got her a Linux box instead.

Last edited by dpeterson3; 11-24-2008 at 09:45 PM.
 
Old 11-24-2008, 10:30 PM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
On some Desktops (gnome on Fedora) there is a setting (tied to that specific account) that allows/prohibits remote login. Since you are getting to the password section before you are getting kicked off, I suspect this is the type of problem you are facing. Unfortunately I THINK you have to be at the machine to change this.

In Fedora (F8 Gnome) it is System->Preferences->Internet & Network->Remote Desktop.
 
  


Reply


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
mysql connection keeps dropping nephish Linux - Networking 0 03-25-2006 10:34 PM
Samba dropping connection Krizzc Linux - Networking 0 10-27-2004 04:54 AM
Dialup Connection Keeps Dropping WarlockofVirgo Linux - Networking 1 09-07-2004 04:42 PM
Connection keeps dropping slakmagik Linux - General 3 04-30-2003 01:26 PM
dropping connection estranged0877 Linux - Networking 2 04-01-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:53 AM.

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