-web enables the web interface, but by default connections are only accept 
from localhost this preserves the security of private databases. 
-webAllowOthers tells the server it is public facing and allows connections 
from other client machines.

On Friday, 2 March 2018 11:32:27 UTC+13, Narahari 'n' Savitha wrote:
>
> Friends:
>
> I need some help.
>
> Thank you in advance for your time.
>
> Here is the scenario.
>
> I started H2 server with the following command
>
> java -cp ../h2*.jar org.h2.tools.Server -web
>
> I then go to browser and point to http://localhost:8082
>
> The page renders and I am able to see the diff fields.  
>
> However when I click on Test Connection it fails saying "Connection 
> refused"
>
>
> <https://lh3.googleusercontent.com/-HaOWrqaDkis/Wph-5v3SukI/AAAAAAAAcfw/Ec5RwvKjSpIVbSTxL8_5fDtRy4wCf8zkQCLcBGAs/s1600/h2conn_notworking.png>
>
>
> If on the other words, if I run the server.
>
> java -cp ../h2*.jar org.h2.tools.Server -webAllowOthers
>
> Everything works.
>
>
> So whats the main diff between -web and -webAllowOthers when server is 
> started ?
>
> The only logical understanding is -web means only web page is allowed but 
> tcp is not so I cant connect.
>
> I presume with webAllowOthers, it is open web and allow others to connect 
> as well.
>
> Am I right ?
>
> -Narahari
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to