Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have MS SQL Server Express running on Windows Server (both AMD64, 2008 R2). MSSQL is configured for remote access. This access works fine when I disable the firewall entirely. It stops working when I enable the firewall.

I've read and tried instructions from these Microsoft articles: here here

I've added both TCP and UDP incoming exceptions on the server for the port used (set to 3306) and for the executable: C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\Binn\sqlservr.exe I've set the firewall rules to apply to all domains. Still, no connection.

Nothing fancy here: No ActiveDirectory, no domain, no layer 3 switching, just a simple SQL Server Authentication connection from a workstation connected to the same physical switch as the server.

Aside from disabling the firewall, does anyone know how to fix this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Port 3306 if for mySQL.

Ports 1433 and 1434 are for MS SQL server. I would advice you to configure your firewall to allow traffic for TCP/UDP on these ports.

share|improve this answer
    
I set MS SQL to use port 3306 to slightly confuse potential blackhats for a few extra seconds (No MySQL used). In any case, I read the first article I linked to as implying that opening 1434 was not necessary in my case. Turns out it was -- that did it. Easy green check for you :) –  Charles Burns Mar 27 '11 at 4:44
    
The SQL Browser is required when ever there are named instances in use. It is recommended to leave them as dynamic IPs so that if the static port that you selected isn't available SQL won't pick that port. With static IPs if the port is in use when SQL starts it can't grab the port and won't retry grabbing it later. –  mrdenny Mar 27 '11 at 5:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.