LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-30-2004, 07:18 PM   #1
freddy1234
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
VNC Connection refused (10061)


I'm trying to use the VNC server on redhat 7.0 I'm using a windows 200 pro to get into the redhat 7.0 but I keep getting the "Connection refused (10061)" error anyone know what this means? I can go the other way with vncviewer.
 
Old 08-30-2004, 07:26 PM   #2
freddy1234
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Ok now when I run vncserver :1

and try to log in with : "192.168.1.50:1" I get the following : "server closed connection unexpectedly"

any idea's
 
Old 08-31-2004, 05:51 PM   #3
tbeehler
Member
 
Registered: Aug 2003
Location: Washington State, USA
Distribution: Mainly RH 9.0
Posts: 226

Rep: Reputation: 30
Do you have the firewall enabled? Perhaps that's what's kicking you off. Also, make sure the vnc service running. Just my 2 cents.

Travis
 
Old 08-31-2004, 06:00 PM   #4
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
u'll have to set the correct (ip-tables) firewall rules for incoming connections..

first try stopping ur ip-tables firewall and see if u can establish the connection.....
 
Old 08-31-2004, 06:24 PM   #5
freddy1234
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
how do you stop the ip-tables?

I'm pretty new at this
 
Old 08-31-2004, 09:20 PM   #6
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
service iptables stop or /etc/init.d/iptables stop

please include ur distribution and kernel version so that it would be easier to address any problems effectively...

just a suggestion....

peace
 
Old 09-01-2004, 06:30 PM   #7
freddy1234
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Ok I think I got the ip tables to stop.

Now every once is a while it will let me in, it'll ask for a password and I'm in, but most of the time it will just tell me " server closed connection unexpectedly " also I'm running redhat 7.0, I don't know what the kernel is..... is anyone could tell me how to find out, I'd be hapy to tell you all what it is..

Thanks for the help so far
 
Old 09-01-2004, 06:38 PM   #8
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
Hi,


#uname -r


the above command will give the kernel u have on your sytem....
 
Old 09-01-2004, 07:08 PM   #9
freddy1234
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Ok the kernel is : 2.2.16-22

there ya go.
 
Old 09-01-2004, 11:50 PM   #10
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
on linux

1)#su -
2)#xhost + [using this is not recoomende but only for testing... remember that]
3)#vncserver

New 'X' desktop is localhost:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log

open a new shell
4)vncviewer
Ur_ipaddress:1
[the one mentioned here is there in the output of #vncserver command ie. --> New 'X' desktop is localhost:1 ]

5)#netstat -a | grep 59
[Output ---> tcp 0 0 *:5901 *:* LISTEN ]

vncserver ports normally are opened from 5900 upwards
in my case as u can see its 5901

and then on WIndows download Tightvnc --->

run the---> vncviewer
Ur_ipaddress::5901 {***Note the two colons and then the port }

Enter ur password when prompted

It should work...



if it doesnt work

# ls -a
[the above command will give u a list of all normal + hidden files]

there is a hidden folder .vnc in ur root directory which there is a {log} of what is happening open it and post it...

also post the output of #tail /var/log/messages

it will dispaly the log file...


Good Luck!!!!

Last edited by UsualTuxpect; 09-01-2004 at 11:52 PM.
 
  


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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 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
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM
VNC Connection refused pacman Linux - Software 7 08-08-2003 12:51 AM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration