- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 09:11 AM
Thanks for coming back to me!
I'm using a different python SQL library, but my config is almost the same as your code above. I'm having to use the IP address of the server rather than the name (does this matter?).
This is the error I get..
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.xxx.xx, port 1433 has failed. Error: "Connection refused (Connection refused). Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."
I can see the traffic going through the firewall to the server. In the Network configuration, I can see the IP address of the SQL Server but there is no port specifically defined.