title: How to change default port 1433 on SQL Server in a node.js connection string
body: <p>I changed the default port 1433 on my SQL Server in centos 7. But in API that is created with Node.js and uses the <code>mssql</code> package to connect to it, I get the error shown here when I want to send or get a request. <code>mssql</code> knows 1433 port as default.</p>
  <p>My connection string</p>
  <pre><code>var sql = require('mssql');
  
  var DbConnectionString = {
          user: 'sa',
          password: 'mypassword',
          server: 'serverip,newport',
          database: 'databasename',
      &quot;options&quot;: {
      &quot;encrypt&quot;: false,
      &quot;enableArithAbort&quot;: true
      },    
  };
  
  module.exports = DbConnectionString;
  </code></pre>
  <p>And this is the error I get:</p>
  <pre><code>{
      &quot;code&quot;: &quot;ESOCKET&quot;,
      &quot;originalError&quot;: {
          &quot;message&quot;: &quot;Failed to connect to myserverip,mynewport:1433 - getaddrinfo ENOTFOUND myserverip,mynewport&quot;,
          &quot;code&quot;: &quot;ESOCKET&quot;
      },
      &quot;name&quot;: &quot;ConnectionError&quot;
  }
  </code></pre>
  <p>How to solve it?</p>