Question

I'm having a heck of a time getting a MS SQL datasource connected through my railo installation. I can connect fine through Adobe ColdFusion, but railo keeps throwing an error

In Adobe ColdFusion I have my server set as mycomputername\sqlexpress and port 1433. In Railo using the same server, database, username and password. I'm getting the following error

The TCP/IP connection to the host myservername, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port."..

I've also tried connecting via the IP address listed in SQL Server Configuration Manager IP4 is set to active and enabled with an IP address of 127.0.0.1 but that throws the same error as above

I have IPv6 turned on and that shows up as IP1 in my TCP/IP settings, but I don't know why that would be causing an issue.

Port 1433 is open as I can connect through Adobe ColdFusion. I hope I'm missing something obvious, but I'm stumped.

Was it helpful?

Solution

I finally got this working by changing the Listen All setting to no in SQL Server Configuration Manager > TCP/IP Propertiest

TCP/IP Properties

and setting the TCP Port to 1433 and enabling the datasource in IP2 below

IP Addresses

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top