PostGres DB remote connection (not LAN)

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

Marco Sgorbati

  • Posts: 25
  • Joined: Fri Oct 02, 2015 8:53 am
  • Location: Italy

PostGres DB remote connection (not LAN)

PostWed May 30, 2018 1:42 pm

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?
Marco Sgorbati, AIC - IMAGO
Offline
User avatar

roger.magnusson

  • Posts: 3877
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: PostGres DB remote connection (not LAN)

PostWed May 30, 2018 1:59 pm

If you're connected through a VPN you should use the local IP for the database, not the public one.

It should work, but I find the latency a bit high even of a fast connection.
Offline
User avatar

Marco Sgorbati

  • Posts: 25
  • Joined: Fri Oct 02, 2015 8:53 am
  • Location: Italy

Re: PostGres DB remote connection (not LAN)

PostWed May 30, 2018 2:02 pm

hi Roger, yes through the VPN the DB works fine.
I'd like to connect without VPN over the public IP.
the router ports are correctly forwarded to server.
may be I've to change something in postgres conf?
Marco Sgorbati, AIC - IMAGO
Offline
User avatar

roger.magnusson

  • Posts: 3877
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: PostGres DB remote connection (not LAN)

PostWed May 30, 2018 4:00 pm

Maybe a local firewall setting on the DB server?
Offline
User avatar

Igor Riđanović

  • Posts: 1656
  • Joined: Thu Jul 02, 2015 5:11 am
  • Location: Los Angeles, Calif.

Re: PostGres DB remote connection (not LAN)

PostWed May 30, 2018 7:37 pm

What's the OS running the PostgreSQL server? If you're on Windows you also have to setup an internal firewall rule to allow TCP traffic on port 5432.
www.metafide.com - DaVinci Resolve™ Apps
Offline
User avatar

Marco Sgorbati

  • Posts: 25
  • Joined: Fri Oct 02, 2015 8:53 am
  • Location: Italy

Re: PostGres DB remote connection (not LAN)

PostThu May 31, 2018 1:37 pm

thx Igor, the server runs osx and 5432 port is correctly forwarded to local server ip. firewalls are off.
Marco Sgorbati, AIC - IMAGO
Offline
User avatar

Igor Riđanović

  • Posts: 1656
  • Joined: Thu Jul 02, 2015 5:11 am
  • Location: Los Angeles, Calif.

Re: PostGres DB remote connection (not LAN)

PostFri Jun 01, 2018 7:26 am

It sounds like you have everything setup correctly. I'd try using psql on the client. it will give you more insight as to where the failure may be. The basic syntax to connect is
Code: Select all
psql -h <IPaddress> -U postgres

It should prompt for a password.

If you connect you can try the
Code: Select all
 \l+
command. it will list the databases. At that point you should see your Resolve database(s).

If it fails somewhere along the way, hopefully there will be some useful information to tell you what's going on.

Alternately you can probe the port with nmap:
Code: Select all
nmap -sS -p5432 <IPaddress>

it will echo "5432/tcp open postgresql" if the port is open and the DB server is listening on it.
www.metafide.com - DaVinci Resolve™ Apps

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], panos_mts, Peter Cave and 260 guests