Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I set a VNC on my server and but when I want to connect to my server with VNC i get this error :

" Failed to connect to server"

what am i going to do ? thanks in advance

share|improve this question

Check that the firewall is allowing tcp connections to the port number your vnc server is listening to.

share|improve this answer
my firewall in now off :D !!! – Emma Jun 1 '10 at 10:29
and then, can you establish a tcp connection? does the machine respond to your icmp requests? does the vnc server listen to the correct interface? – Maxwell Jun 1 '10 at 14:50

Check if VNC server is running.

netstat -a

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.