postgres=# -- port of the remote connectionpostgres=# select inet_client_port() ; inet_client_port------------------ 4996(1 row)postgres=#