Preview Timing Out



In my workspace, I have PHP, Apache and I cloned a repo from bitbucket and when I try to preview the code, I get

PostgreSQL server: could not connect to server: Connection timed out\n\tIs

I assumed it was from the php code that my pgconnect credentials were wrong, but I’ve triple checked with others and it’s copied in there so there’s no way it’d be wrong. My question I suppose is why would this connection not work? Also consider I am connected through ethernet to the server that has the db so I definitely have access. I just need this code to preview, any help greatly appreciated.