Exception in thread "Main" com. microsoft. sqlserver. JDBC. sqlserverexception: The TCP/IP connection to the host xx.111.134.54, port 1433 has failed. error: Connection timed out: connect. please verify the Connection Properties and check that a SQL server instance
Is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.
At com. Microsoft. sqlserver. JDBC. sqlserverexception. makefromdrivererror (sqlserverexception. Java: 130)
At com. Microsoft. sqlserver. JDBC. sqlserverconnection. connecthelper (sqlserverconnection. Java: 1195)
At com. Microsoft. sqlserver. JDBC. sqlserverconnection. loginwithoutfailover (sqlserverconnection. Java: 1054)
At com. Microsoft. sqlserver. JDBC. sqlserverconnection. Connect (sqlserverconnection. Java: 758)
At com. Microsoft. sqlserver. JDBC. sqlserverdriver. Connect (sqlserverdriver. Java: 842)
At java. SQL. drivermanager. getconnection (drivermanager. Java: 582)
At java. SQL. drivermanager. getconnection (drivermanager. Java: 185)
At gov. Well. util. sqlserver. Test. Main (test. Java: 18)
Solution 1: Disable the Firewall
Solution 2: Exceptions added to the firewall, TCP 1433