Received: from ornak.waw.pdi.net (ornak.waw.pdi.net [195.116.8.66]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBDBh3M70421 for ; Wed, 13 Dec 2000 06:45:12 -0500 (EST) (envelope-from vincent@waw.pdi.net) Received: from lidka (pa214.warszawa.cvx.ppp.tpnet.pl [213.76.96.214]) by ornak.waw.pdi.net (8.9.3/8.9.1/rchk1.20+bspm1.13+PDi2.5/W) with SMTP id MAA27763 for ; Wed, 13 Dec 2000 12:41:52 +0100 Message-Id: <3.0.6.32.20001213124555.00797100@waw.pdi.net> X-Sender: vincent@waw.pdi.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 13 Dec 2000 12:45:55 +0100 To: pgsql-sql@postgresql.org From: Mateusz Mazur Subject: Great thanks (JDBC). Another probem. Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.postgresql.org id eBDBnTM70761 X-Archive-Number: 200012/100 X-Sequence-Number: 433 Hello. Thank you for your answer (really big thanks). But I have another problem. I try to connect to my linux postgresql server and I have some error. I have linux machine on my local network (e.g. 192.168.1.100), on this machine I have postgresql 7.0.2. In my "pg_hba.conf" file is line like that: host all 0.0.0.0 0.0.0.0 password so I think I could connect to psql from all network. I write Java class on second computer (w2k) but in the same network (e.g. 192.168.1.101). The code looks like that: " import java.sql.*; class Javasql { public static void main(String[] args) { try { Class.forName("org.postgresql.Driver"); Connection db = DriverManager.getConnection("jdbc:postgresql://192.168.1.100/menu","javaus", "testpwd"); } catch(Exception e) { System.out.println("Exception !!!"); } System.out.println("After Exception"); } } " where: javaus – user in pg_shadow menu – database testpwd – correct password for javaus Problem is that I can’t connect to server. Appear exception. Exception is caused by getConnection() method not Class.for.Name(). I try also write line like that DriverManager.getConnection("jdbc:postgresql://192.168.1.100:5432/menu","jav aus”,"testpwd"); The same problem. Postgres looks fine, because he accept connection from php script (localhost). I can't test Java localhost connection (ther is no sDK or JVM on linux machine). I don't know I do wrong. If any one can help me. Please. Mateusz.