The TCP/IP connection to the host has failed. java | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

The TCP/IP connection to the host has failed. java

i am getting this exception whenever i tried to connect to the DB whihc is present at some other machine.
the exception is "The TCP/IP connection to the host has failed. Connection timed out: connect
Please check if you are able to ping this box or check if you have specified some timeout option in your code. Hemantgiri S. Goswami
"Humans don’t have Caliber to PASS TIME , Time it self Pass or Fail Humans" – by Hemantgiri S. Goswami
CHeck what is the port assiged to TCP/IP, by default its 1433 and you might try with 1434. Satya SKJ
Microsoft SQL Server MVP
Writer, Contributing Editor & Moderator
This posting is provided AS IS with no rights for the sake of knowledge sharing. Knowledge is of two kinds. We know a subject ourselves or we know where we can find information on it.
First try to create a test ODBC (System DSN) and see you can connect from the application/Java server.
You can also try passing the port number.. ex: servernameinstancename,portnumber MohammedU.
Moderator All postings are provided “AS IS” with no warranties for accuracy.