SQL Server error 1413 ("Communications to the remote server instance failed") means the local SQL Server instance could not establish a reliable connection to a linked or remote SQL Server instance. The fastest fix is to verify the remote instance is running and reachable, confirm the SQL Browser service is running if you use a named instance, and check that TCP/IP is enabled and the correct port is open on the remote server. Work through the steps below in order, because the cause is almost always one of: the remote service is stopped, the wrong server or instance name is used, TCP/IP is disabled, a firewall blocks the port, or the SQL Browser service is not running for named instances.
What You'll Need
- Administrative access to the local SQL Server instance and, ideally, the remote server (or a contact who can check it).
- The exact remote server name and instance name (for example,
SERVER01\INSTANCE1). - SQL Server Configuration Manager installed on both machines (it ships with SQL Server).
- Permission to open firewall ports on the remote server, or a network administrator who can.
- SQL Server Management Studio (SSMS) or another client for testing connections.
Step-by-Step
- Confirm the remote SQL Server service is running. On the remote machine, open SQL Server Configuration Manager and select SQL Server Services. Check that the SQL Server (MSSQLSERVER) service, or the named instance service, shows Running. If it is stopped, start it. If you cannot access the remote machine, ask the administrator to confirm the service state.
- Verify the server and instance name. A very common cause is a typo or a missing instance name. In SSMS on the local machine, try connecting to the remote instance directly using the full name (for example,
tcp:SERVER01\INSTANCE1,1433if you know the port). If the name is wrong, you will get error 1413 or a related network error. Use the exact name shown in SQL Server Configuration Manager on the remote server. - Enable TCP/IP on the remote instance. In SQL Server Configuration Manager on the remote server, expand SQL Server Network Configuration, select Protocols for the instance, and make sure TCP/IP is Enabled. If you change it, restart the SQL Server service for the change to take effect.
- Check the TCP port. In the same TCP/IP properties, open the IP Addresses tab and confirm the TCP Port under IPAll (or the relevant IP section). The default is 1433 for a default instance; named instances often use a dynamic port unless you set a static one. Note the port number.
- Start the SQL Server Browser service for named instances. If you connect to a named instance without specifying a port, the client asks the SQL Browser service on the remote server which port to use. In SQL Server Configuration Manager, select SQL Server Services, right-click SQL Server Browser, and start it. Set it to Automatic if it should always run.
- Open the firewall on the remote server. In Windows Defender Firewall with Advanced Security, create an inbound rule allowing TCP on the port you noted (1433 by default). If you use the SQL Browser service, also allow UDP port 1434. Apply the rule to the correct network profile (Domain, Private, or Public) that matches your connection.
- Test basic network reachability. From the local machine, open Command Prompt and run
ping SERVER01to confirm the host resolves and responds. Then runtelnet SERVER01 1433(or use PowerShellTest-NetConnection SERVER01 -Port 1433) to confirm the port is open. If the port test fails, the problem is network or firewall, not SQL Server itself. - Recreate or repair the linked server definition. If error 1413 appears when querying a linked server, drop and recreate the linked server with the correct name and provider. In SSMS, expand Server Objects > Linked Servers, right-click the linked server, and select Delete, then recreate it with the correct remote server name and login mapping. Test with a simple query such as
SELECT * FROM OPENQUERY(LinkedServerName, 'SELECT 1'). - Restart the local SQL Server service. After any configuration change on either side, restart the local SQL Server service so it re-establishes connections cleanly. Then retry the operation that produced error 1413.
Common Mistakes
- Using the wrong instance name or forgetting the instance part entirely.
- Enabling TCP/IP but not restarting the SQL Server service, so the change never takes effect.
- Opening the firewall only on the local machine instead of the remote server.
- Assuming SQL Browser is running because the SQL Server service is running; they are separate services.
- Setting a static port in TCP/IP properties but leaving the firewall rule pointing at a different port.
- Testing with a client that uses a different protocol (for example, named pipes) and concluding TCP is broken.
Tips
- Use
tcp:in front of the server name in connection strings to force TCP and rule out named pipes issues. - Keep a note of the exact port each instance uses; dynamic ports can change after a restart if not pinned.
- Check the SQL Server error log on both machines for messages around the time of the failure; they often name the exact cause.
- If the remote server is in another domain or workgroup, confirm that DNS resolution works from the local machine before changing SQL Server settings.
Troubleshooting
If error 1413 persists after the steps above, isolate the layer that is failing. First, confirm the remote instance is reachable from another machine on the same network; if it is not, the issue is on the remote server or the network path. Second, check whether the local SQL Server service account has permission to make outbound connections; a restricted account can cause failures that look like network errors. Third, review Windows Event Viewer on both machines for network or service errors at the time of the failure. Fourth, if you use a linked server, test the same connection directly in SSMS with the same credentials; if direct connection works but the linked server fails, the linked server definition or login mapping is the problem. Finally, if the remote server is behind a NAT or VPN, confirm the port mapping and that the VPN is connected; error 1413 is common when a VPN drops mid-session.
Frequently Asked Questions
What does SQL Server error 1413 actually mean?
It means the local SQL Server could not communicate with the remote instance it was trying to reach, usually because the remote service is down, the name is wrong, or a firewall or port setting blocks the connection.
Is error 1413 always a network problem?
No. It can also come from a stopped SQL Server service, a disabled TCP/IP protocol, a missing SQL Browser service, or an incorrect linked server definition.
Do I need to restart SQL Server after enabling TCP/IP?
Yes. Changes to network protocols in SQL Server Configuration Manager require a restart of the SQL Server service to take effect.
Why does it work for a default instance but fail for a named instance?
Named instances often rely on the SQL Browser service and dynamic ports. If SQL Browser is stopped or UDP 1434 is blocked, clients cannot discover the correct port.
Can error 1413 appear only for linked servers?
It often does, because linked servers add another layer of configuration. Recreating the linked server with the exact remote name and correct login mapping usually resolves it.
What port should I open in the firewall?
TCP 1433 for a default instance, the static port you configured for a named instance, and UDP 1434 if you rely on SQL Browser for named instance discovery.