title: SQL network-instance related issue (with error 258)
body: <p>I get the following message when trying to connect to SQL database from a remote machine using MS Management Studio with Server Name <strong>[</strong> XX.XXX.XXX.XXX,1433\MyServerName <strong>]</strong> and SQL authentication:</p>
  
  <blockquote>
    <p>Cannot connect to XX.XXX.XXX.XXX,1433\MyServerName.</p>
    
    <p>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 - The wait operation timed out.) (Microsoft SQL Server, Error: 258)</p>
    
    <p>The wait operation timed out</p>
  </blockquote>
  
  <hr>
  
  <p>I have done the following:</p>
  
  <ul>
  <li>Allowed remote connection in Server Properties window in SQL Management Studio</li>
  <li>Configured server machine to have static IPv4/DNS addresses.</li>
  <li>Enabled TCP/IP in SQL Configuration Manager (in SQL Server Network Configuration)</li>
  <li>In TCP/IP properties, adjusted [ Protocol -> Listen All -> No ] &amp; set IP[1-8] to TCP port 1433 and IPAll port to 1433 (TCP dynamic ports left blank)</li>
  <li>Set Inbound/Outbound enable connection (Domain, public, private) rules in Windows Firewall for ports TCP 1433, UDP 1434 (should make no difference, since port is specified), service executables: <em>sqlbrowser.exe in C:\Program Files (x86)\Microsoft SQL Server\90\Shared</em> (not used I think because port is specified) <strong>and</strong> <em>sqlservr.exe in C:\Program Files\Microsoft SQL Server\MSSQL13.MyServerName \MSSQL\Binn</em></li>
  <li>Set NAT actions in server-side router for ports 1433 (TCP), 1434 (UDP) (again, should not matter) to server's local IPv4 address and ports 1433, 1434 accordingly.</li>
  <li>Made sure SQL service is running, ports are open and listening on server machine.</li>
  </ul>
  
  <hr>
  
  <p>I can connect to the database on server machine using Windows or Sql credentials with either PC name, or machine's local IPv4.</p>
  
  <p>Interesting thing is, when <code>&gt;telnet XX.XXX.XXX.XXX 1433</code> is run, it takes about 10-12 seconds to fail (<em>Could not open connection to the host, on port 1433: Connect failed</em>), but I can see the 2 packets coming to the router itself. Same with the login using SQL Manager - packets come to the router, but either server machine refuses (doesn't resolve?) the connection, or it doesn't even get to the machine.</p>
  
  <p>Appreciate your suggestions.</p>
  
  <hr>
  
  <p>Versions used: </p>
  
  <ul>
  <li>MS SQL Server 2016 Express, MS SQL Management Studio 17, SQL Server 2016 Configuration Manager, Windows 10 Pro.</li>
  </ul>