code: def _myPlexClientPorts(self):
          
          try:
              ports = {}
              account = self.myPlexAccount()
              for device in account.devices():
                  if device.connections and ':' in device.connections[0][6:]:
                      ports[device.clientIdentifier] = device.connections[0].split(':')[-1]
              return ports
          except Exception as err:
              log.warning('Unable to fetch client ports from myPlex: %s', err)
              return ports
docs: Sometimes the PlexServer does not properly advertise port numbers required
              to connect. This attemps to look up device port number from plex.tv.
              See issue #126: Make PlexServer.clients() more user friendly.
                https://github.com/pkkid/python-plexapi/issues/126