PgAdmin 4.14 connection error in cloudSQL : could not send data to server, socket is not connected, could not send ssl negotiation packet
Subash's answer worked for me. Switching from localhost to 127.0.0.1 allowed the connection successfully.