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:
con esta configuración local mente funciona perfectamenteVer original
postgresql.conf # - Connection Settings - listen_addresses = '*' # what IP address(es) TO listen ON; # comma-separated list OF addresses; # defaults TO 'localhost', '*' = ALL # (CHANGE requires restart) port = 5432 # (CHANGE requires restart) #tcpip_socket = TRUE max_connections = 100 # (CHANGE requires restart) # Note: Increasing max_connections costs ~400 bytes OF shared memory per # connection slot, plus LOCK SPACE (see max_locks_per_transaction). #superuser_reserved_connections = 3 # (CHANGE requires restart) #unix_socket_directory = '' # (CHANGE requires restart) #unix_socket_group = '' # (CHANGE requires restart) #unix_socket_permissions = 0777 # BEGIN WITH 0 TO USE octal notation # (CHANGE requires restart) #bonjour = off # advertise server via Bonjour # (CHANGE requires restart) #bonjour_name = '' # defaults TO the computer name pg_hba.conf # TYPE DATABASE USER CIDR-ADDRESS METHOD # IPv4 LOCAL connections: host ALL ALL 192.168.1.35/32 md5 # IPv6 LOCAL connections: host ALL ALL ::1/128 md5 #host ALL ALL 192.168.1.35 255.255.255.0 md5 #host ALL ALL 192.168.1.35 255.255.255.0 trust #host ALL ALL 0.0.0.0 0.0.0.0 md5 #host bd_gestion postgres 192.168.1.35 255.255.255.0 md5
pero cuando activo el tcpi_socket=true
no funciona
agradecería bastante su ayuda.