1、首先关闭防火墙,ping通ip
2、修改pg的配置文件:pg_hba.conf
最后面增加一行:host all all 0.0.0.0/0 scram-sha-256
3、使用pycharm或者navicat就可以正常连接了
如何连接其他人的postgresql