PostgreSQL
- 1 ответ
- 0 вопросов
0
Вклад в тег
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all trust
host replication all 127.0.0.1/32 trust
host replication all ::1/128 trust
#host all all 0.0.0.0/0 trust
# - Connection Settings -
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for all
# (change requires restart)
port = 5432 # (change requires restart)
netstat -ano
можно глянуть адреса, порты и PID netsh advfirewall firewall add rule name="Postgre Port" dir=in action=allow protocol=TCP localport=5432