Open the remote of the relevant database in the postgresql manager, and open the relevant ports on the system firewall and the firewall of the server provider, the default is 5432
It is recommended that only the IP of your server be accessible, otherwise there will be security issues
aaP_yanyanruhyana