title: Trouble connecting to a remote HANA database via JDBC
body: <p>I'm running a small JAVA program from my laptop trying to connect via JDBC to our HANA server for a "Can we?" prototype.</p>
  
  <p>I understand it's possible to connect via JDBC connection to a remote HANA server.
  However, I cannot.  Here's the methodology I'm using from the JAVA using the sapdbc.jar file.  I'm just testing a connection here.</p>
  
  <pre><code>    DataSourceSapDB ds = new DataSourceSapDB();
      ds.setServerName("10.x.x.xxx");
      ds.setPort(30015);
      ds.setDatabaseName("dbNAME");
      ds.setUser("myUser");
      ds.setPassword("myPassword");
      Connection c = ds.getConnection();
  
      if (c == null) return;  
  </code></pre>
  
  <p>The instance is 00 but don't see where to include it in the connect string, if it is required.  I've double-checked all the properties.</p>
  
  <p>Our HANA server is hosted by another company though access to it is inside our network.  Could this be a reason?  </p>
  
  <p>Thanks for any assinstance.</p>
  
  <p>The connection error I get is:</p>
  
  <pre><code>com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://10.x.x.xxxx:30015/dbNAME [Connect reply receive failed [Connection reset].].
      at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:178)
      at com.sap.dbtech.jdbcext.DataSourceSapDBBase.openPhysicalConnection(DataSourceSapDBBase.java:374)
      at com.sap.dbtech.jdbcext.DataSourceSapDB.getConnection(DataSourceSapDB.java:49)
      at com.glazers.hana.utils.HanaStoredProcedure.execute(HanaStoredProcedure.java:37)
      at com.glazers.hana.utils.HanaStoredProcedure.main(HanaStoredProcedure.java:24)
  </code></pre>