Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th January 2007, 08:51 AM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
VNC Connection refused (111)

Hello,

I installed the vncserver on my linux machine (lin_srv2).
I've tested this by typing
vncviewer localhost:2

Now a window come up with a desktop. But this is on the same machine.
Now I tried to connect from a other machine (lin_srv1) to lin_srv2 by typing
vncviewer 192.168.0.94:2 (I used the IP adress of lin_srv2 to be sure that are no errors in there I also tested it with the machine name but that gives the same result)

Now I get the following error

[cpri@lin_srv1 ~]vncviewer 192.168.0.94:2

VNC Viewer Free Edition 4.1.1 for X - built Mar 1 2006 08:20:51
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Fri Jan 12 08:23:29 2007
main: unable to connect to host: Connection refused (111)
[cpri@lin_srv1 ~]

Does any of you now what went wrong ??
Reply With Quote
  #2  
Old 12th January 2007, 09:13 AM
paul matthijsse Offline
Registered User
 
Join Date: Sep 2005
Location: Dieulefit, France
Posts: 721
you must tell your main machine to accept remote connections. have a look in this guide how to do that.

http://www.fedoraforum.org/forum/sho...&highlight=vpn
Reply With Quote
  #3  
Old 12th January 2007, 12:18 PM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
I already had a look at that HOWTO but still I get Connection refused (111)
Reply With Quote
  #4  
Old 12th January 2007, 01:33 PM
tsorvoja Offline
Registered User
 
Join Date: Jul 2004
Location: Finland
Age: 33
Posts: 380
I'm having the same problem. Would you show us the log from ~/.vnc/ to show if there's any errors?
Reply With Quote
  #5  
Old 12th January 2007, 05:21 PM
itsthescottdog Offline
Registered User
 
Join Date: Sep 2006
Posts: 87
I would assume that you've already done this, but did you open the tcp ports in the firewall?

5900 for display 1
5901 for display 2 and so on
Reply With Quote
  #6  
Old 12th January 2007, 06:17 PM
purplover Offline
Registered User
 
Join Date: Jun 2006
Location: NY USA
Posts: 23
Did you go to Remote Desktop and check "Allow others to view your desktop" and (if you want) "Allow others to control your desktop"? That should do the trick.

HTH
__________________
purplover
Reply With Quote
  #7  
Old 13th January 2007, 07:24 PM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
I will show you the log monday (I don't have access to the pc right now)
I even disabled the firewall so that shouldn't be the problem.
Porlover: I assume you mean the Remote desktop tab in the gdmsetup. Yes I checked them and "Allow others to view your desktop" and (if you want) "Allow others to control your desktop" are both checked.
Reply With Quote
  #8  
Old 15th January 2007, 10:00 AM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
Here is my log file

Code:
Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70100000, The X.Org Foundation


Mon Jan 15 10:49:48 2007
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5902
 vncext:      Listening for HTTP connections on port 5802
 vncext:      created VNC server for screen 0
Could not init font path element /usr/share/X11/fonts/OTF, removing from list!
Could not init font path element /usr/share/X11/fonts/CID/, removing from list!
localuser:root being added to access control list
xset:  bad font path element (#37), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
startkde: Starting up...
kbuildsycoca running...
kwin: unable to claim manager selection, another wm running? (try using --replace)
Xlib:  extension "XFree86-Misc" missing on display ":2.0".
server does not have extension for "r rate" option
There are already artsd objects registered, looking if they are active...
Server has no DPMS extension
Klipper is already running!

Error: Can't add object reference (probably artsd is already running).
       If you are sure it is not already running, remove the relevant files:

       /tmp/ksocket-root/Arts_SoundServerV2
       /tmp/ksocket-root/Arts_SoundServer
       /tmp/ksocket-root/Arts_SimpleSoundServer
       /tmp/ksocket-root/Arts_PlayObjectFactory
       /tmp/ksocket-root/Arts_AudioManager
I think there are some problems with kwin but I'm not sure
Reply With Quote
  #9  
Old 22nd January 2007, 07:01 AM
Xavior Offline
Registered User
 
Join Date: Aug 2006
Location: USA
Posts: 323
On the Server: this is the PC you want to see remotely...
switch to firestarter firewall, there is a problem with fedora firewall.
go to Preferences, set as needed.
In FireStarter: Under Policy's, add service, enter port 5900, and an IP. click Apply Policy.
make sure the settings are right under Preferences>Remote Desktop, set a pass word for security.
disable the Network Manager. there is a problem with this as well...

wait 5 mins for settings to set,
HTH, Now try it !
Xav
Reply With Quote
  #10  
Old 22nd January 2007, 07:09 AM
cpri Offline
Registered User
 
Join Date: Jun 2004
Posts: 116
Since this is our test server I had to do a reinstall (the reason is a long story) I followed the following link http://www.bobpeers.com/linux/vnc
And now it is working without any problem
Reply With Quote
  #11  
Old 22nd January 2007, 08:24 AM
Xavior Offline
Registered User
 
Join Date: Aug 2006
Location: USA
Posts: 323
I checked it out; kool link !
I was able to get some settings off that site,
I like that way better, because my way only worked if someone was logged in,
your way shows me a desktop, but at the server you can't see anything but the logon screen,
works well,
but I am missing the top and bottom menu bars for some reason...

Thanks, very helpful ;^)
Xav
Reply With Quote
Reply

Tags
111, connection, refused, vnc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rsh connection refused ankurpachauri Servers & Networking 1 7th September 2009 09:35 AM
Connection Refused vijay_kumar749 Servers & Networking 3 22nd November 2005 05:13 PM
FTP connection refused. CICA Servers & Networking 3 7th September 2005 10:15 AM
Connection Refused - FC3 nulli_secundus Servers & Networking 6 14th April 2005 09:23 AM
Connection refused until in network connection JJS Servers & Networking 5 2nd November 2004 07:27 PM


Current GMT-time: 17:16 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat