Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » PostgreSQL »

Error al configurar un servidor postgresql conexión remota

Estas en el tema de Error al configurar un servidor postgresql conexión remota en el foro de PostgreSQL en Foros del Web. hola A todos espero me puedan ayudar a configurar un servidor pstgresql , lo estado configurando y cuando intento ingresar desde una maquina cliente me ...
  #1 (permalink)  
Antiguo 30/01/2011, 15:14
 
Fecha de Ingreso: agosto-2007
Mensajes: 12
Antigüedad: 16 años, 8 meses
Puntos: 0
Mensaje Error al configurar un servidor postgresql conexión remota

hola A todos espero me puedan ayudar a configurar un servidor pstgresql , lo estado configurando y cuando intento ingresar desde una maquina cliente me muestra el siguiente error

could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host "192.168.1.35" and accepting TCP/IP connections on port 5432?



pero si local mente si hay acceso el problema surge cuando la conexión es remota


Código SQL:
Ver original
  1. postgresql.conf
  2.  
  3. # - Connection Settings -
  4.  
  5. listen_addresses = '*'      # what IP address(es) TO listen ON;
  6.                     # comma-separated list OF addresses;
  7.                     # defaults TO 'localhost', '*' = ALL
  8.                     # (CHANGE requires restart)
  9. port = 5432             # (CHANGE requires restart)
  10. #tcpip_socket = TRUE
  11. max_connections = 100           # (CHANGE requires restart)
  12. # Note:  Increasing max_connections costs ~400 bytes OF shared memory per
  13. # connection slot, plus LOCK SPACE (see max_locks_per_transaction).
  14. #superuser_reserved_connections = 3 # (CHANGE requires restart)
  15. #unix_socket_directory = ''     # (CHANGE requires restart)
  16. #unix_socket_group = ''         # (CHANGE requires restart)
  17. #unix_socket_permissions = 0777     # BEGIN WITH 0 TO USE octal notation
  18.                     # (CHANGE requires restart)
  19. #bonjour = off              # advertise server via Bonjour
  20.                     # (CHANGE requires restart)
  21. #bonjour_name = ''          # defaults TO the computer name
  22.    
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. pg_hba.conf
  31.  
  32. # TYPE  DATABASE        USER            CIDR-ADDRESS            METHOD
  33.  
  34. # IPv4 LOCAL connections:
  35.  host    ALL             ALL             192.168.1.35/32            md5
  36. # IPv6 LOCAL connections:
  37. host    ALL             ALL             ::1/128                 md5
  38.  
  39.  
  40. #host   ALL         ALL     192.168.1.35 255.255.255.0 md5
  41. #host   ALL     ALL     192.168.1.35 255.255.255.0 trust
  42. #host   ALL     ALL     0.0.0.0 0.0.0.0 md5
  43. #host   bd_gestion  postgres    192.168.1.35 255.255.255.0 md5
con esta configuración local mente funciona perfectamente
pero cuando activo el tcpi_socket=true
no funciona

agradecería bastante su ayuda.
  #2 (permalink)  
Antiguo 31/01/2011, 07:24
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Error al configurar un servidor postgresql conexión remota

Sino estoy mal, tcpip_socket es el parámetro antiguo que fue reemplazado por listen_address en las nuevas versiones.

Pienso que ese parámetro debe estar deshabilitado si el listen_address está operando.

Cual es la necesidad de tener este parámetro en true? Cuando está deshabilitado funciona?

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #3 (permalink)  
Antiguo 24/02/2011, 14:02
 
Fecha de Ingreso: septiembre-2009
Mensajes: 2
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Error al configurar un servidor postgresql conexión remota

Hola:

No se si ya lograste resolver el problema pero lo que no te es que esta mal configurado el archivo pg_hba.conf, pusiste la marcara de subred de 32 y en realidad es de 24, es decir:

host ALL ALL 192.168.1.35/24 md5


Saludos.

Etiquetas: configurar, remota, servidores
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:57.