1

I just installed a named instance of SQL Server 2008 Developer Edition on our Windows 2008 server. I've been working all morning trying to enable remote connections but have been unsuccessful. Here are some details:

  • SQL Server service is running using the network service account
  • SQL Server Browser service is running using the network service account
  • TCP/IP protocol is enabled
  • TCP/IP listens on a specific IP address, port 1433 (I have done a netstat to verify it is listening)
  • Port 1433 is open on to TCP traffic in the firewall
  • Server authentication is set to mixed mode
  • Remote connections are enabled

I am able to connect from SSMS 2008 on the server itself using the following:

ipaddress\instance_name (e.g. 123.45.67.89\SQLSERVER)
SQL Server authentication (e.g. sa, password)

However, I am not able to connect, using the exact same connection properties and login, from a remote client using SSMS 2008. At first I thought it must be a firewall issue, but I tried completely turning the firewall off and still get the same error:

"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible."

Anyone have any suggestions?

Thanks!

Kevin Babcock
  • 243
  • 1
  • 4
  • 12

4 Answers4

1

Open up UDP port 1434, you need this for the SQL Server Browser service.

or

Try connecting in SSMS using the following: 123.45.67.89\SQLSERVER,1433 Yo shouldn't need the browser service if you specify the port.

Nick Kavadias
  • 10,796
  • 7
  • 37
  • 47
1

Start with the basics. Can you ping the SQL server by ip address and hostname from the remote machine?

Run "netstat -a -b -n" from a command prompt on the SQL server to verify what port the SQL instance is listening on.

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
1

Can you telnet from the client to port 1433 on the server?

mrdenny
  • 27,174
  • 4
  • 41
  • 69
  • No, I can't telnet from the server. When I type 'telnet 123.45.67.89 1433' I get the error 'Could not open connection to the host, on port 1433: Connect failed' – Kevin Babcock Oct 24 '09 at 01:28
  • Then something is blocking the connection between your workstation and the server. Either a firewall on one of the machines, or a wirewall on the network between the two machines. Or the SQL Server isn't setup to listen on that port. Check the ERRORLOG file to verify the port number that SQL Server is listening on. – mrdenny Oct 26 '09 at 02:32
1

Well, I changed the static port for the named instance to a non-standard port (not 1433). I'm not exactly sure why this fixed it but I am now able to connect. Thanks for the help and troubleshooting tips everyone!

Kevin Babcock
  • 243
  • 1
  • 4
  • 12
  • wow that's interesting! A named instance cannot listen to port 1433? Will have to test that and see if its documented anywhere – Nick Kavadias Oct 24 '09 at 11:41
  • maybe try removing the instance name when connecting, if your connecting to the sql server on 1433? – Nick Kavadias Oct 24 '09 at 12:16
  • I'm using a named instance and configured it to listen to port 1433. Works. But it's true that named instances by default listen to other ports, so you have to configure firewall accordingly (if setting up port exception and not program exception). – Robert Koritnik Feb 13 '12 at 07:37