Skip site navigation (1) Skip section navigation (2)

Re: Database Server Remote connection failed

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: 王峰 <wangfengjs(at)163(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Database Server Remote connection failed
Date: 2007-05-20 13:24:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
王峰 wrote:
> Hi,I can't establish a connection to PostgreSQL(version postgresql-8.2.4) Server. I'am sure what i config is right. Following are what i do to enable remote connection: 1. edit/usr/local/pgsql/data/postgresql.confenable remote tcp/ip connection:listen_addresses = '*'port = 5432max_connection = 100 2. edit/usr/local/pgsql/data/pg_hba.confadd remote client that will connect to the server to pg_hba.conf for example:PC_Server IP: Running PostgreSQL Server. Linux OS.PC_Client IP: Will connect to the PC_Server. Windows XP OS so, i add one line to pg_hba.conf :host    all    all    trust---------------------------------------------------But when i established a connection to the PC_Server on the PC_Client(C:\Program Files\PostgreSQL\8.0.0-rc1\bin>psql -h -U postgres postgres) the system give me one message:
> psql: could not connect to server: No route to host (0x00002751/10065)
>         Is the server running on host "" and accepting
>         TCP/IP connections on port 5432?---------------------------------------------------------Please tell me why, or whatever i made mistake.Thanks!   

"No route to host" sounds like a network configuration problem. Make 
sure you can reach the server from the client with "ping".

   Heikki Linnakangas

In response to

pgsql-bugs by date

Next:From: JasonDate: 2007-05-20 13:30:53
Subject: BUG #3294: PostgreSQL Setting permissions for folders during installation then Crashing
Previous:From: Stefan KaltenbrunnerDate: 2007-05-20 13:23:26
Subject: Re: Database Server Remote connection failed

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group