1

Trying to connect my Java Spring app on Tomcat to my sqlserver express database with Hibernate.

Getting error:

com.microsoft.sqlserver.jdbc.SQLServerException: Connection Failed TCP / IP to localhost port 1433.
Error: "Connection refused: connect. Check the connection properties, make
sure that an instance of SQL Server is running on the host and accepting TCP
/ IP connections to port, and make sure that no firewall is blocking TCP 
connections to port. ".
2
  • may be you get the answer from here Visit stackoverflow.com/questions/18841744/… Commented Feb 9, 2016 at 9:09
  • i go to Enable TCP/IP Right box and i found it already Enable TCP/IP 1433 Commented Feb 9, 2016 at 9:14

2 Answers 2

1

the problem is that your tcp/ip protocol is not 1433, please follow theses instructions and your problem should be gone : SqlServer Configuration Manager > Sql server Network configurations > protocols for SQLEXPRESS > right click on TCP/IP > properties > IP Adress > IPALL and change TCP PORT to 1433

Sign up to request clarification or add additional context in comments.

Comments

0

in majority of cases its the firewall that blocks it. try disabling it

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.