title: Network error IOException: Connection refused (Android)
body: <p>I'm trying to connect my android to my sql server (using jtds driver) through the port 1433, which I have already set under TCP/IP IPALL port in Sql server configuration manager. </p>
  
  <p>Here are some images to show the configuration: <a href="https://i.stack.imgur.com/RXSQI.jpg" rel="nofollow noreferrer">IP address of SQl server</a>, <a href="https://i.stack.imgur.com/Dzc9B.jpg" rel="nofollow noreferrer">IPALL Tcp/ip port</a></p>
  
  <p>I've also enabled TCP/IP itself, but I'm getting this error:</p>
  
  <blockquote>
    <p>Network error IOException: Connection refused</p>
  </blockquote>
  
  <p>I've tried many different connection strings below but I still keep getting the same error:</p>
  
  <pre><code>string db, un, pass;
  un ="abby";
  pass = "123";
  
     // db = "jdbc:jtds:sqlserver://DESKTOP-UXE5RL\\SQLENT2016";
     // db = "jdbc:jtds:sqlserver://DESKTOP-UXE5RL:3225/SQLENT2016;DatabaseName=FlowerDB";
     // db = "jdbc:jtds:sqlserver://DESKTOP-UXE5RL\\SQLENT2016";
     // db = "jdbc:jtds:sqlserver://DESKTOP-UXE5RL\\SQLENT2016:3225/FlowerDB";
     // db = "jdbc:jtds:sqlserver://192.168.1.2/FlowerDB;instance=SQLENT2016";
      // db = "jdbc:jtds:sqlserver://192.168.1.2/FlowerDB;instance=SQLENT2016";
     // db = "jdbc:jtds:sqlserver://192.168.1.2\\SQLENT2016:1433;databaseName=FlowerDB";
      db = "jdbc:jtds:sqlserver://192.168.1.2:1433;databaseName=FlowerDB;instance=SQLENT2016;user=abby;password=123";
  
  
  // con = DriverManager.getConnection(db, un, pass);
  con = DriverManager.getConnection(db);
  </code></pre>
  
  <p>Please advise me thanks!</p>