code: def clients(self):
          
          items = []
          ports = None
          for elem in self.query('/clients'):
              port = elem.attrib.get('port')
              if not port:
                  log.warning('%s did not advertise a port, checking plex.tv.', elem.attrib.get('name'))
                  ports = self._myPlexClientPorts() if ports is None else ports
                  port = ports.get(elem.attrib.get('machineIdentifier'))
              baseurl = 'http://%s:%s' % (elem.attrib['host'], port)
              items.append(PlexClient(baseurl=baseurl, server=self,
                                      token=self._token, data=elem, connect=False))
  
          return items
docs: Returns list of all :class:`~plexapi.client.PlexClient` objects connected to server.