LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Vnc : Connection refused (https://www.linuxquestions.org/questions/linux-newbie-8/vnc-connection-refused-435593/)

dragunu 04-16-2006 03:04 AM

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

anti.corp 04-16-2006 03:57 AM

Hi,

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

regards,

dragunu 04-16-2006 04:07 AM

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

dragunu 04-16-2006 04:24 AM

ok i found a way. i enabled remote desktop from the gui. thanks a bunch for ur help!

mlavannis 04-23-2006 10:31 AM

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

slackmagic 04-25-2006 05:54 AM

hey there dragunu,

also make sure you take a look at x11vnc

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

have fun


All times are GMT -5. The time now is 05:22 AM.