|
|||||||||||
|
[JDBC] trying to connect to pg from within a local network
From: Albretch Mueller <lbrtchx(at)gmail.com>
Date: Wed Jan 16 2008 - 09:22:19 EST
// __ aDrvr: |org.postgresql.Driver| // __ aDBURL: |jdbc:postgresql://10.0.31.5:5432/postgres| // __ Class.forName(org.postgresql.Driver): |class org.postgresql.Driver| // __ (Driver)KDrvr.newInstance() :|org.postgresql.Driver@1893efe| // __ DriverManager.registerDriver(OKDrvr);org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.// __ database connection could not be set up! C:\cmllpz\prjx\java\JDBC\PG>ipconfig -all Windows IP Configuration
Host Name . . . . . . . . . . . . : BGN-2008
Primary Dns Suffix . . . . . . . : exchange.thetrade.org
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : exchange.thetrade.org
thetrade.org
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 440x 10/100
Integrated Controller
Physical Address. . . . . . . . . : 00-16-E6-45E-F5-27
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.0.31.62
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.31.1
DHCP Server . . . . . . . . . . . : 10.0.31.1
DNS Servers . . . . . . . . . . . : 10.0.1.23
10.0.1.74
Lease Obtained. . . . . . . . . . : Tuesday, January 15, 2008 9:18:55 PM
Lease Expires . . . . . . . . . . : Wednesday, January 16,
2008 9:18:55 PM
C:\cmllpz\prjx\java\JDBC\PG> ~ Tracing route to 10.0.31.5 over a maximum of 30 hops 1 <1 ms <1 ms <1 ms 10.0.31.5
Trace complete.
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Received on Wed Jan 16 09:47:39 2008This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:57 EDT |
||||||||||
|
|||||||||||