What does the Postgres log file say about it? It is refusing the connection, so why?
I think Postgres by default has pretty tight security and as such will only allow known connections.