PostgreSQL allow remote connections from anywhere in Windows code example
Example 1: postgresql allow remote connections
listen_addresses = '*'
Example 2: postgresql allow remote connections
listen_addresses = 'localhost'
listen_addresses = '*'
listen_addresses = 'localhost'