PostGres DB remote connection (not LAN)

hi guys!
can I connect to my Postgres Resolve server via public IP to share "home studio" and "Company studio" projects?
locally all the workstations work fine.
setting up a VPN the DB works fine too.
changing the IP to public one when attempting to connect an error occurs.
any suggestion?
can I connect to my Postgres Resolve server via public IP to share "home studio" and "Company studio" projects?
locally all the workstations work fine.
setting up a VPN the DB works fine too.
changing the IP to public one when attempting to connect an error occurs.
any suggestion?