# HTTP API lists HTPC client twice

**URL:** <https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139>\
**Category:** Dev/API Corner\
**Tags:** other-dev, plex-htpc\
**Created:** [November 9, 2023, 9:25pm UTC](https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139 "2023-11-09T21:25:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mainTAP](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mainTAP](https://forums.plex.tv/u/mainTAP)\
**Post date:** [November 9, 2023, 9:25pm UTC](https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139/1 "2023-11-09T21:25:20Z")

</div>

When retrieving list of clients from server via :32400/clients, it lists HTPC client twice, one with host IP of 127.0.0.1 and the other one with the IP of the server.

```auto
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="3">
<Server name="HTPC" host="127.0.0.1" address="127.0.0.1" port="32400" machineIdentifier="k0nan9ab5jyskjis3" version="1.50.1.4014-17b646cd" protocol="plex" product="Plex HTPC for Windows" deviceClass="pc" protocolVersion="2" protocolCapabilities="timeline,playback,navigation,playqueues,provider-playback" />
<Server name="HTPC" host="192.168.0.101" address="192.168.0.101" port="32400" machineIdentifier="k0nan9ab5jyskjis3" version="1.50.1.4014-17b646cd" protocol="plex" product="Plex HTPC for Windows" deviceClass="pc" protocolVersion="2" protocolCapabilities="timeline,playback,navigation,playqueues,provider-playback" />
</MediaContainer>

```

When I start another HTPC client on a different machine, it still shows only one duplicate of the new one :

```auto
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="4">
<Server name="MacBook-Air.local" host="127.0.0.1" address="127.0.0.1" port="32400" machineIdentifier="dzwl4hefsrd4e99fbq" version="1.50.1.4014-17b646cd" protocol="plex" product="Plex HTPC for Mac" deviceClass="pc" protocolVersion="2" protocolCapabilities="timeline,playback,navigation,playqueues,provider-playback" />
<Server name="MacBook-Air.local" host="192.168.0.101" address="192.168.0.101" port="32400" machineIdentifier="dzwl4hefsrd4e99fbq" version="1.50.1.4014-17b646cd" protocol="plex" product="Plex HTPC for Mac" deviceClass="pc" protocolVersion="2" protocolCapabilities="timeline,playback,navigation,playqueues,provider-playback" />
<Server name="HTPC" host="192.168.0.101" address="192.168.0.101" port="32400" machineIdentifier="k0nan9ab5jyskjis3" version="1.50.1.4014-17b646cd" protocol="plex" product="Plex HTPC for Windows" deviceClass="pc" protocolVersion="2" protocolCapabilities="timeline,playback,navigation,playqueues,provider-playback" />
</MediaContainer>

```

This seems to be causing issues connecting to the client with integrations like python Plex-api / Home Assistant.

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [November 9, 2023, 10:31pm UTC](https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139/2 "2023-11-09T22:31:17Z")

</div>

Are you sanitizing these results in some way? The media container size appears to be off by one in both listings (size = 3 with two clients, size = 4 with 3 clients); my tests don’t show the same. Also, it seems unlikely that both your Plex HTPC for MAC client and Plex HTPC for Windows clients would have the same local IP address (192.168.0.101).

---

<div class="post-metadata">

**Author:** ![mainTAP](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mainTAP](https://forums.plex.tv/u/mainTAP)\
**Post date:** [November 9, 2023, 10:52pm UTC](https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139/3 "2023-11-09T22:52:32Z")

</div>

Yes, sorry I removed a Plexamp client which wasn’t relevant .  
The host IP address for both HTPC clients is the IP address of the server rather than the local IP of the clients, is this normal for HTPC clients ? Other clients I use ( Plexamp, Plex for Mac ) show their actual IP addresses.

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [November 9, 2023, 11:09pm UTC](https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139/4 "2023-11-09T23:09:21Z")

</div>

> [@mainTAP](#):
>
> The host IP address for both HTPC clients is the IP address of the server rather than the local IP of the clients, is this normal for HTPC clients ?

Yes, I’m pretty sure it is actually. Plex HTPC is a [companion/receiver-only app](https://support.plex.tv/articles/203082707-supported-plex-companion-apps/#toc-2) whose access is likely mediated by the server, hence the server being shown as the contact IP address.

---

<div class="post-metadata">

**Author:** ![mainTAP](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mainTAP](https://forums.plex.tv/u/mainTAP)\
**Post date:** [November 12, 2023, 12:23pm UTC](https://forums.plex.tv/t/http-api-lists-htpc-client-twice/859139/5 "2023-11-12T12:23:30Z")

</div>

Yes, that seems correct, I tried another receiver-only app ( Samsung TV ) and it showed the IP of the server as well.  
However it only showed that client once, whereas with the HTPC clients it also lists the 127.0.0.1 and also some Controller-Only apps like desktop for windows and Mac show the client twice. That seems to also be causing issues with some integrations to either retrieve the status or control the client.
