I got this error while I was trying to connect to a remote database on a linux host.
Reason : Firewall was enabled on the target host.
I disabled firewall by issuing following commands :
root@target#service iptables status service iptables stop chkconfig iptables off
Now I could make the connection.
Hope it helps…