Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-Server-2008
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 17-Dec-12 7:17am
Edited 17-Dec-12 12:36pm
Nelek55.4K
v2
Comments
ryanb31 at 17-Dec-12 13:37pm
   
The error is accurate. How are you trying to connect? Through code? Through Sql Management Studio?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100