I am trying to connect to my managed PostgreSQL instance in IBM. It sometimes connects via Pgadmin. I have no success connecting via terminal or c# code (npgsql). Following is the error i get.

```none
psql: error: could not connect to server: could not connect to server: Operation timed out
    Is the server running on host "someaddress.databases.appdomain.cloud" (xxx.xx.xxx.218) and accepting
    TCP/IP connections on port 30331?
could not connect to server: Operation timed out
    Is the server running on host "someaddress.databases.appdomain.cloud" (xxx.xx.xxx.98) and accepting
    TCP/IP connections on port 30331?
could not connect to server: Operation timed out
    Is the server running on host "someaddress.databases.appdomain.cloud" (xxx.xx.xxx.197) and accepting
    TCP/IP connections on port 30331?

```

Its surprising me as to why it succeeds sometimes when tried via pgadmin. Also the error message has 3 IPs listed why is that? 
I don't think ip whitelisting is the problem otherwise error message would have been different