Both of these, one which uses the other in its implementation, proxy their calls to the leader node, which is misleading when debugging because the node, if not the leader, may still have a connection to the remote sink.
Rather, return a list of open connections and the source node.
For instance, dev1 is not the source leader, but has a process open to a sink node, which is not reported by the connections command.