HTTP API lists HTPC client twice

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.

<?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 :

<?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.

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).

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.

Yes, I’m pretty sure it is actually. Plex HTPC is a companion/receiver-only app whose access is likely mediated by the server, hence the server being shown as the contact IP address.

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.