LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2006, 03:04 AM   #1
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
Vnc : Connection refused


Greetings. I am running vnc server on Fedora core 3. When I try to run the server, it runs ok on the machine, however when i try to connect to it via a windows system, its getting me an error, 10061 Connection Refused.

Thanks
 
Old 04-16-2006, 03:57 AM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi,

Did you try to ping your server? Do you have a firewall which could be blocking?

regards,
 
Old 04-16-2006, 04:07 AM   #3
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
the server is pingable cause i can access it via ssh. more over it doesnt seem to have a firewall. but just in case, is there a way i can check if i have a firewall installed on the linux just in case i havent noticed?

thanks for ur reply
 
Old 04-16-2006, 04:24 AM   #4
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
ok i found a way. i enabled remote desktop from the gui. thanks a bunch for ur help!
 
Old 04-23-2006, 10:31 AM   #5
mlavannis
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
VNC setup on Linux (Fedora core 5)

Here is a checklist of access controls that can prevent successfull VNC sessions:

1. Make sure your router firewall allows VNC. Specifically, it should open the ports 5800, 5900. If your VNC display is on :1, you should also open ports 5801 & 5901. Similarly, if your display is on port :2, you should open 5802 & 5902, and so on.

1b. If you have NAT running on the router, make sure it directs the VNC traffic to the appropriate local address!

2. Make sure your Xwindows has access opened on those displays. To find out, do:
> xauth list

If you dont see your display listed, do:

> xauth add <hostname:display> . `m`

3. Make sure your Linux firewall has those ports open (5800, 5900, 5801, 5901, 5802, 5902, etc). This can be done through the Gnome GUI as follows:
- Go to System->Administration->Security Level and Firewall

(To get the System menu, you will need to add the "Menu Bar" to your panel)

4. Make sure your /etc/hosts.deny & /etc/hosts.allow files allow the external VNC user to connect

5. Make sure your /etc/sysconfig/vncservers file has displays setup for appropriate users

6. If you have NAT running on the router, make sure that the external machine you are running the VNC client on, uses the EXTERNAL IP address of the linux machine on which your VNC server is running!

To find the external IP address of your linux machine, point your webbrowser (on the linux machine) to myipaddress.com

7. Finally, note that you can point your web browser (on your linux machine) to the following website to check if your VNC server is accessible from the external world: www.gotomyvnc.com

Last edited by mlavannis; 04-23-2006 at 10:38 AM.
 
Old 04-25-2006, 05:54 AM   #6
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 253

Rep: Reputation: 32
hey there dragunu,

also make sure you take a look at x11vnc

which pretty much works great as vnc with -display :0

have fun
 
  


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 (10061) freddy1234 Linux - Software 9 09-01-2004 11:50 PM
VNC Connection Refused markpadam Linux - Security 5 05-07-2004 07:02 PM
VNC Connection refused pacman Linux - Software 7 08-08-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration