打开C:\Program Files\PostgreSQL\9.4\data\pg_hba.conf
以下代表本机能连,172.16.73.xx都能连(/24就代表最后一位是0-255),如果是172.16.73.11/32那就是限制了172.16.73.11才能连(实际我设置/32是无效的),
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             172.16.73.0/24            trust
host    all             all             172.16.183.0/24            trust以下代表任何电脑都能连接
host all all 0.0.0.0 0.0.0.0 trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host	 all	 all	 0.0.0.0  0.0.0.0	 trust