title: Error: TCP Provider: Error code 0x2746. During the Sql setup in linux through terminal
body: <p>I am trying to setup the ms-sql server in my linux by following the documentation 
  <a href="https://docs.microsoft.com/pl-pl/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017" rel="noreferrer">https://docs.microsoft.com/pl-pl/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017</a></p>
  
  <p>The SQL server status is Active (Running).</p>
  
  <p>I am getting the following error while executing the command </p>
  
  <pre><code>sqlcmd -S localhost -U SA -P '&lt;YourPassword&gt;'
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider:
    Error code 0x2746. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL
    Server : Client unable to establish connection.</p>
  </blockquote>
  
  <p>I also tried by giving the command </p>
  
  <pre><code>sqlcmd -S 127.0.0.1 -U SA -P '&lt;YourPassword&gt;' 
  </code></pre>
  
  <p>But the same error is displayed. When I tried the wrong password it also displays the same error.</p>