client_name (Net::SSH::Transport::PacketStream)

        # File lib/net/ssh/transport/packet_stream.rb, line 39
    39:     def client_name
    40:       @client_name ||= begin
    41:         sockaddr = getsockname
    42:         begin
    43:           Socket.getnameinfo(sockaddr, Socket::NI_NAMEREQD).first
    44:         rescue
    45:           begin
    46:             Socket.getnameinfo(sockaddr).first
    47:           rescue
    48:             begin
    49:               Socket.gethostbyname(Socket.gethostname).first
    50:             rescue
    51:               lwarn { "the client ipaddr/name could not be determined" }
    52:               "unknown"
    53:             end
    54:           end
    55:         end
    56:       end
    57:     end