Connect to Cockroach DB

Has anyone successfully connected a Shiny application (hosted on to a remote Cockroach labs database cluster?

Even after whitelisting the IP address, as outlined here, but I'm still receiving the error message:

Warning: Error in : could not connect to server: Connection refused
Is the server running on host "localhost" ( and accepting

Any expertise is greatly appreciated.