×


VNC error 'Timed out waiting for the response from the host computer' - Fix it Now ?

Are you trying to resolve VNC 'Timed out waiting for the response from the host computer'?

We can help you.


Sometimes Windows users come across this error while trying to connect to the computer with a VNC viewer.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to resolve related Windows errors.

What triggers VNC error 'Timed out waiting for the response from the host computer' ?

One of the most common causes for this issue is that no response was received from the specified IP address, even to reject the connection.

How to fix VNC error 'Timed out waiting for the response from the host computer' ?

Follow the tips below to resolve this error.

1. Firstly, we have to check whether the host server is up and online.
We can check this using the following ping and telnet commands:

$ ping [IP_address]
$ telnet [IP_address] [port]

2. Then we have to ensure that the antivirus software lists have VNC Server as an exception.

3.  We must also ensure that the default port (5900) that VNC uses is open in our firewall.
With the following command we can check this:

$ telnet [IP_address] 5900

If it is not connecting, either the port is closed in the server, or our source IP address may be blocked in the server.
We can open port 5900 with the following commands:

$ sudo /sbin/iptables -I INPUT 1 -p TCP --dport 5900 -j ACCEPT
$ sudo iptables save

Also, check whether there is any block for our IP address.

4. After that, we need to check whether we can establish a direct connection over the Internet.

5. Finally we can try restarting the VNC server using the following command:

$ sudo service vncserver restart


[Need assistance in fixing VNC connection errors? We can help you. ]




Conclusion

This article covers methods to fix VNC 'Timed out waiting for the response from the host computer' error for our customers.


1. You can try adding a firewall rule:

$ sudo /sbin/iptables -I INPUT 1 -p TCP --dport 5901:5910 -j ACCEPT

2. Or directly modify the file /etc/sysconfig/iptables file and add a line:

-A INPUT -p tcp -m state --state NEW -m tcp --dport 5901:5910 -j ACCEPT

3. Restart the iptables service:

$ service iptables restart

4. If there is no iptables.service file, use yum to install it:

$ yum install iptables-services

5. Then Run the command,

$ sudo /sbin/iptables -I INPUT 1 -p TCP --dport 5901:5910 -j ACCEPT

The firewall does not need to be restarted, nor does it execute flush privileges, and then connect with the VNC client and find that the connection is up.