Click here to Skip to main content
12,828,639 members (44,297 online)
Rate this:
Please Sign up or sign in to vote.
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,1234.


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 8:17am
Updated 17-Dec-12 13:36pm
ryanb31 17-Dec-12 13:37pm
The error is accurate. How are you trying to connect? Through code? Through Sql Management Studio?
Rate this: bad
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
Rate this: bad
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 :[^]

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2017
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