H2 AUTO_SERVER=TRUE weird IP address

120 views
Skip to first unread message

Lukáš Vasek

unread,
Mar 31, 2017, 11:11:51 AM3/31/17
to H2 Database
Hello,
I'm using H2 Database for development in server mode (to access it from within application and also from query browser).
Till now everything worked ok, but currently I'm getting strange IP in lock.db file. 
Can somebody please tell me how is the IP obtained?

this is my current config:
jdbc:h2:~/h2db/bank;AUTO_SERVER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE

when I access it from query browser I get exception 

"java.net.ConnectException: Connection refused (Connection refused): X.Y.Z.ZZ:51149" [90067-193]

but that address is not mine...it's external address which I can see.

Thanks



Lukáš Vasek

unread,
Mar 31, 2017, 1:33:16 PM3/31/17
to H2 Database
Nevermind...I've changed from java 1.8.40 to 1.8.121 and the implementation of InetAddress has slightly changed. So when I had before computername.domain.com and it was referring to my localhost/computer IP now it refers to outer domain.
Reply all
Reply to author
Forward
0 new messages