Postgres only visible at IP 127.0.0.1

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Postgres only visible at IP 127.0.0.1

Postby brownalan » Fri Mar 21, 2008 6:47 pm

I can't telnet to my postgres port at anything other than 127.0.0.1 5432

I can access my db locally only when I use localhost or 127.0.0.1 as the address.

my internal ip address (10.0.1.45) doesn't work (from itself or from another machine). Is this a postgres setting I need to change or is this a windows issue? So I can't access my db from any machine apart from the one it's running on.

Any help would be much appreciated.
brownalan
 
Posts: 1
Joined: Thu Mar 20, 2008 11:46 pm

Re: Postgres only visible at IP 127.0.0.1

Postby _dave_ » Fri Mar 21, 2008 7:04 pm

yeah, it is in the pg_hba.conf file, right at the bottom.

You need to allow access for your individual computers (or as I lazily do, whole range).

should be obvious enough when you look at he file (for someone who is using telnet and talking about IP addresses anyhow :) ) - but post if you need more instruction.

EDIT: of course make sure some local firewall isn't preventing incoming connections on 5432, and I think you have to restart the postgres service after editing pg_hba.conf too.
_dave_
 
Posts: 1147
Joined: Sun Dec 09, 2007 6:19 pm


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 1 guest