Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am connecting my laptop to another in order to access the sql remotelly, but i face the following error while connecting :-

TITLE: Connect to Server
------------------------------

Cannot connect to 172.16.1.81,1234.

------------------------------
ADDITIONAL INFORMATION:

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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)
Posted
Updated 17-Dec-12 12:36pm
v2
Comments
ZurdoDev 17-Dec-12 13:37pm    
The error is accurate. How are you trying to connect? Through code? Through Sql Management Studio?

As the error states, your application cannot communicate with the server. Since you have used a direct IP address I would check the following things:
- is the port 1234 correct? It's not the default port (1433) so it's verified?
- is there a firewall in between? Especially since non-standard port is used, it needs to be opened in the firewall (if present)
- SQL Server service up and running properly?
- correct IP address? (what happens if you try ping
 
Share this answer
 
Add/Check Firewall policy is open for port 1433(Default) or specific port according to your sql server listner port..
look at this : http://msdn.microsoft.com/en-us/library/ms190608%28v=SQL.100%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900