Window Server Firewall and SQL Server -- Accessing from Windows 10 client

pragmatistMS
pragmatistMS used Ask the Experts™
on
On my home network, I have the Windows Server (2012 R2) set up as a domain server and I have SQL Server (2014 developer edition)installed.  From my Windows 10 client machine, I am trying to connect to the SQL Server using Visual Studio 2013.  The Windows firewall on the server (and perhaps other factors) are causing problems.  

I will just try to go through the facts:

1.  If I turn off the server firewall, I can reach the SQL DB from SQL Management Studio or Visual Studio on the Win10 client, but performance is painfully slow if I use TCP as the protocol.
2.  When using named pipes, connecting to the DB server from SQL Management Studio on the client works fine and feels fast as expected.  
3.  Visual Studio does not have a protocol option so I can't use named pipes, it forces me to use TCP so it will only work with the firewall completely turned off and is slow (same as #1 above)
4.  Turning on the firewall blocks the connection, even though I believe I have all the appropriate ports opened (I'm sure I've missed something but I'm open to ideas)
5.  When I ping the server from the client, I get <1ms as expected, but it shows the address as a hex address rather than an IP address.
6.  I'm able to reach the hard disk of the server from the client with \\MYSERVER\c$ without problem and with good performance
7.  I am trying to connect from the client using SQL Server authentication (the sa account and the password), the client is not logged into a domain account.

Can anyone help?  I want to leave the firewall on the server on, but be still able to connect with Visual Studio (no named pipes) and with decent performance.  I am not an experienced at server administration at all, my focus is development, so there's lots I don't know here.

Thanks for any help you can provide.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Lead Technical Consultant
Commented:
The windows firewall on Server 2012 does pretty good job. But in my experience i also have faced issues while the windows firewall is turned on. I have allowed port 1433 on the firewall and enabled the timed out on the SQL SERVER properties. Please refer this article : http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx

Author

Commented:
Thanks for the link to the article, after I looked at the screenshot I went back and checked the protocols for MSSQLSERVER under SQL Server Network Configuration, and it showed TCP/IP as disabled.  After I enabled it, all seems to be working as expected with the firewall port rules I already had in place.  It is somewhat puzzling, first because I checked that property early on and it was enabled (not sure how it later became disabled), and also that it worked at all with the firewall off, even with reduced performance, if TCP was disabled before?  It seems to be working fine now, from all clients, so I'm happy to live with that mystery.

Thanks again for the response.
Ganesh AnandLead Technical Consultant

Commented:
I am glad your issue is resolved.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial