title: H2 Database Auto Server mode : Accessing through web console remotely
body: <p>I am fairly new to <code>H2 Database</code>. As a part of a PoC, I am using H2 database(version : <code>1.4.187</code>) for mocking the MS SQL Server DB. I have one application, say app1 which generates the data and save into H2. Another application, app2, needs to read from the H2 database and process the data it reads. I am trying to use <code>Auto Server mode</code> so that even if one of the application is down, other one is able to read/write to/from the database. </p>
  
  <p>After reading multiple examples, i found how to build the h2 url and shown as below:</p>
  
  <pre><code>jdbc:h2:~/datafactory;MODE=MSSQLServer;AUTO_SERVER=TRUE;
  </code></pre>
  
  <p>Enabled the tcp and remote access as Below:</p>
  
  <pre><code>org.h2.tools.Server.createTcpServer("-tcpAllowOthers","-webAllowOthers").start()
  </code></pre>
  
  <p>With this, I am able to write to the database. Now, I want to read the data using the <code>h2-web-console</code> application. I am able to do that from my local machine. However, I am not able to understand how I can connect to this database remotely from another machine.</p>
  
  <p>My plant is to run these two apps in an ubuntu machine and I can monitor the data using the web console from my machine. Is it not possible with this approach? 
  How can I solve this ? </p>
  
  <p>Or do I need to use server mode and explicitly start the h2 server?  Any help would be appreciated.</p>