Why is server trying to access ilovepdf.com ip address?

Using netstat I ve got these logs :

----
[2025-11-02 07:20:28] Connexion détectée: MY_IP:34123 -> 172.64.152.170:80
    -> Processus : 18000/Plex
    -> Ligne de commande : Plex Plug-in [com.plexapp.system] /volume1/@appstore/PlexMediaServer/Resources/Plug-ins-f737b826c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.42.2.10156-f737b826c /volume1/@appstore/PlexMediaServer/Resources/Plug-ins-f737b826c/System.bundle
----
[2025-11-02 07:20:30] Connexion détectée: MY_IP:59588 -> 104.18.35.86:80
    -> Processus : 18000/Plex
    -> Ligne de commande : Plex Plug-in [com.plexapp.system] /volume1/@appstore/PlexMediaServer/Resources/Plug-ins-f737b826c/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.42.2.10156-f737b826c /volume1/@appstore/PlexMediaServer/Resources/Plug-ins-f737b826c/System.bundle
----
dig +short ilovepdf.com
104.18.35.86
172.64.152.170

Why is Plex server using these IPs with insecure http connexion ?
Is it needed ?

Is there a way to know external services (domain / protocol or port) needed by plex server ?

Thanks

Both of those IPs are Cloudflare according to whois.domaintools.com

Please show me where PMS is attempting to access these ?

Hi @ChuckPa

At the begining of my post you ve got the logs generated by a script running tcpdump/netstat/ps in order to track outgoing connexions and owning process on the server

It looks like PMS is initiating these connexions using dynamic ports

Try to run a wireshark for a while on your PMS to track these 2 IPs, you should see it

I will post you the script aswell if you want to use it

Plex uses Cloudflare for DNS and so does ilovepdf . com. This means that any Ip address resolved for app.plex.tv will more than likely resolve to a Cloudflare owned IP address.

Here is a list of IP addresses used by Cloudflare IP Ranges

Note the 172.64.0.0/13 and 104.16.0.0/13 ranges.

DNS on port 80, I doubt it :wink:

But yeah Cloudflare is the cloud provider ; ilovepdf . com could be only using the same shared servers / IPs … but the port 80 connexion is strange

@ChuckPa

#!/bin/bash

LOG="/logs.txt"
LOCAL_IP="EXTERNAL_IP"

echo "[$(date '+%F %T')] Démarrage surveillance connexions sortantes depuis : IP ${LOCAL_IP}" >> "$LOG"

tcpdump -n -l -q 'ip and not dst port 443 and not (dst net 192.168.0.0/16) and tcp[tcpflags] & tcp-syn != 0' 2>/dev/null | while read -r line; 

do
    # Extrait src_ip, src_port, dst_ip, dst_port
    if [[ "$line" =~ IP[[:space:]]([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.([0-9]+)[[:space:]]\>[[:space:]]([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.([0-9]+): ]]; then
        SRC_IP="${BASH_REMATCH[1]}"
        SRC_PORT="${BASH_REMATCH[2]}"
        DST_IP="${BASH_REMATCH[3]}"
        DST_PORT="${BASH_REMATCH[4]}"

        # Ne conserver que les sorties venant de l'IP locale
        [[ "$SRC_IP" == "$LOCAL_IP" ]] || continue

        #Recuperation de la date
        TS="$(date '+%F %T')"

        # Cherche la ligne de netstat correspondant à local:port et récupère PID/nom
        PROC=$(netstat -plant 2>/dev/null | awk -v ip="$SRC_IP" -v port="$SRC_PORT" '
            $4 == ip":"port { print $7; exit }
        ')        
        
        if [[ -n "$PROC" && "$PROC" != "-" ]]; then
            echo "[$TS] Connexion détectée: ${SRC_IP}:${SRC_PORT} -> ${DST_IP}:${DST_PORT}" >> "$LOG"
            echo "    -> Processus : ${PROC}" >> "$LOG"

            # Extraire le PID (avant le /). netstat donne "PID/nom"
            PID="${PROC%%/*}"

            if [[ "$PID" =~ ^[0-9]+$ ]]; then
                # Récupère la ligne de commande complète
                CMD=$(ps -p "$PID" -o cmd= 2>/dev/null)
                if [[ -n "$CMD" ]]; then
                    echo "    -> Ligne de commande : ${CMD}" >> "$LOG"
                fi
            fi
            echo "----" >> "$LOG"
        fi
    fi
done

No dns does not use port 80, that is the default for http traffic. But you computer does use DNS to find the IP address of where app.plex.tv is regardless of the port that is trying to communicate to.

In other words this is expected behavior and nothing to be alarmed about.

1 Like

This does not make sense to me.

We have had a number of problems this past week due to the Amazon outage and Operations have changed a few things on the backend to make it more resilient.

I’m going to forward this to them and ask for information & assistance.

Plex never uses port 80 EXCEPT in a browser

ALL:

I’ve checked with operations and the resources teams.

  1. Yes, ilovepdf.com is at that IP address
  2. The old resources systems used that host name (IP address)
  3. Even though not used , PMS does still check the connection to it (incorrectly)
  4. They will be removing the references from the System bundle

Thank you for spotting it

2 Likes

Nice job, what effective @ChuckPa :+1: :slightly_smiling_face:

By the way if you would be abble to help me with this one I would really appreciate :wink: : Samsung TV securely connects to only ONE server!