Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have installed and have running the VNC SERVER on my Linux machine here. Now i have another WINDOWS machine on the network running VNC VIEWER, and when i type my LINUX machines IP into that it comes up CONNECTION REFUSED.
Could this be to do with the LInux Firewall?
If so how do i disable or allow VNC through the firewall??
Thanks,
Miles

Linux handles the VNC server a little differently.
Assume you have VNC server running on a windows box. To connect to it, you would only have to enter the IP address then the password.
On a Linux box, the VNC server assigns a desktop number as well. So you have to enter the IP address along with the desktop number, then the password.
This means you can have several instances of vncserver running. The first time you start vncserver, it uses desktop number one. Start it again and it makes desktop #2 available and so on.So let's assume the IP of your Linux vnc server is 192.168.123.1. To connect to it from a windows box, you have to enter 192.168.123.1:1 where :1
is the desktop number.Likewise to stop a vnc session, you have to specify which desktop number to stop. For example, the command:
vncserver -kill:2
will stop session number 2.
I hope this is what you were looking for.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |