More ports than 1433 are typically involved in an SQL connection. Here is a batch file for opening ports on a default instance (non-named instance) of SQL:
netsh firewall set portopening TCP 1433 "SQLServer"
netsh firewall set portopening TCP 1434 "SQL Admin Connection"
netsh firewall set portopening TCP 4022 "SQL Service Broker"
netsh firewall set portopening TCP 135 "SQL Debugger/RPC"
netsh firewall set portopening TCP 2383 "Analysis Services"
netsh firewall set portopening TCP 2382 "SQL Browser"
netsh firewall set portopening UDP 1434 "SQL Browser"
netsh firewall set multicastbroadcastresponse ENABLE
If your SQL Server shows up as "SERVERNAME" and not "SERVERNAME\INSTANCENAME" the above file should work. If it shows up as the latter you also have to open the dynamic TCP port used by that instance. Interestingly enough firewall configurations can actually cause the server to respond as "SERVERNAME" and not "SERVERNAME\InstanceName" so that alone may not be enough to determine if it is a named instance. If you get a successful connection to the SQL server you can also run this to find out:
SELECT @@SERVERNAME
If you have a named instance of SQL please post back on this thread and I will post how to discover the dynamic TCP port for named instances of SQL Server.
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
Skill Endorsements: 21