I have a PC with Windows 7 Pro and SQL Server 2008 R2 installed and a laptop with Windows 7 Home and SQL Server 2008. I have added a Windows Firewall rule on the PC to allow incoming TCP connections on port 1433. Both the PC and the laptop are connected wirelessly to the same Homegroup network.
When I try to connect to the SQL Server 2008 R2 instance on the PC from SSMS on the laptop, I get the following error:
Cannot connect to MyPC\SVR1.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
I have deduced that the problem is caused by the Windows Firewall on the PC because when I disable it temporarily, the connection works fine. Can someone please advise me how to configure Windows Firewall on the PC so that it allows my remote connection from the laptop without unduly compromising security on the PC?
Thanks in advance.