On 14 May 2011 11:42, Thomas Mueller <[email protected]> wrote: > Hi, > > Could you run this and post the result?: > > ./build.sh testNetwork
result at the bottom of this e-mail > By default, H2 will try to use the IP address (for me it's > http://10.132.1.237:8083/ currently). The advantage over > http://localhost:8083 is that you can use the same URL on another machine. > > I don't know why you get http://[::1]:8082/. It sounds like IPv6 is the > default protocol in your system, or the system doesn't support IPv4. Also, > it's strange you got the IPv6 loopback address and not the absolute address. I saw that your script gets the IPv6 loopback address from getLocalHost . then I checked: $ hostname -i ::1 then I saw in /etc/hosts : 127.0.0.1 localhost.localdomain localhost ::1 amanica-i7laptop localhost6.localdomain6 localhost6 I changed that to: 127.0.0.1 localhost.localdomain localhost amanica-i7laptop ::1 localhost6.localdomain6 localhost6 then hostname -i 127.0.0.1 hostname -I 10.0.0.6 10.18.11.62 then the H2 Console Application connects to http://localhost:8082/ -- thanks <>< Marius ><> == amanica@amanica-i7laptop:/stf/opt/h2-2011-02-12> $ sh build.sh testNetwork Target: testNetwork environment settings: file.encoding=UTF-8 file.encoding.pkg=sun.io file.separator=/ java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment java.awt.printerjob=sun.print.PSPrinterJob java.class.path=bin:/usr/lib/jvm/java-6-sun/lib/tools.jar:temp java.class.version=50.0 java.endorsed.dirs=/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/endorsed java.ext.dirs=/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/ext:/usr/java/packages/lib/ext java.home=/usr/lib/jvm/java-6-sun-1.6.0.24/jre java.io.tmpdir=/tmp java.library.path=/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/../lib/amd64:/home/amanica/R/x86_64-pc-linux-gnu-library/2.11/rJava/jri/:/usr/lib/R/lib:/usr/lib/R/site-library/rJava/jri:/usr/local/lib/R/site-library/rJava/jri:/usr/lib/jvm/java-6-sun/jre/lib/amd64/server:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.name=Java(TM) SE Runtime Environment java.runtime.version=1.6.0_24-b07 java.specification.name=Java Platform API Specification java.specification.vendor=Sun Microsystems Inc. java.specification.version=1.6 java.vendor=Sun Microsystems Inc. java.vendor.url=http://java.sun.com/ java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi java.version=1.6.0_24 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name=Java Virtual Machine Specification java.vm.specification.vendor=Sun Microsystems Inc. java.vm.specification.version=1.0 java.vm.vendor=Sun Microsystems Inc. java.vm.version=19.1-b02 line.separator= os.arch=amd64 os.name=Linux os.version=2.6.38-8-generic path.separator=: sun.arch.data.model=64 sun.boot.class.path=/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/classes sun.boot.library.path=/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/amd64 sun.cpu.endian=little sun.cpu.isalist= sun.desktop=gnome sun.io.unicode.encoding=UnicodeLittle sun.java.launcher=SUN_STANDARD sun.jnu.encoding=UTF-8 sun.management.compiler=HotSpot 64-Bit Server Compiler sun.os.patch.level=unknown user.country=ZA user.dir=/mnt/bigstuph/stf/opt/h2-2011-02-12 user.home=/home/amanica user.language=en user.name=amanica user.timezone= localhost:localhost/127.0.0.1 localhost/127.0.0.1 localhost/0:0:0:0:0:0:0:1 getLocalHost:amanica-i7laptop/0:0:0:0:0:0:0:1 /0:0:0:0:0:0:0:1 byName:/0:0:0:0:0:0:0:1 ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=56578] server accepting client:/0:0:0:0:0:0:0:1:56578 server accepted:Socket[addr=/0:0:0:0:0:0:0:1,port=56571,localport=56578] client:Socket[addr=/0:0:0:0:0:0:0:1,port=56578,localport=56571] server read:123 client read:234 server closing server done done Done in 1624 ms == -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
