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

hi,
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. java.net.ConnectException: Connection timed out: connect
"
Hi,
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
MS SQL Server MVP
————————-
"Humans don’t have Caliber to PASS TIME , Time it self Pass or Fail Humans" – by Hemantgiri S. Goswami http://hemantgirisgoswami.blogspot.com
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
http://www.SQL-Server-Performance.Com
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
SQL-Server-Performance.com All postings are provided “AS IS” with no warranties for accuracy.

]]>