client_name (Net::SSH::Transport::Session)

    # File lib/net/ssh/transport/session.rb, line 120
            def client_name
              return @hostname if defined? @hostname

              sockaddr = @socket.getsockname
              begin
                @hostname =
                  Socket.getnameinfo( sockaddr, Socket::NI_NAMEREQD ).first
              rescue
                begin
                  @hostname = Socket.getnameinfo( sockaddr ).first
                rescue
                  begin
                    @hostname = Socket.gethostbyname( Socket.gethostname ).first
                  rescue
                    @logger.error "the client ipaddr/name could not be determined"
                  end
                end
              end

              return @hostname
            end