# Plex showing Docker network instead of IP

**URL:** https://forums.plex.tv/t/plex-showing-docker-network-instead-of-ip/803651
**Category:** Plex Media Server
**Tags:** server-docker, networking
**Created:** [August 8, 2022, 4:54am UTC](https://forums.plex.tv/t/plex-showing-docker-network-instead-of-ip/803651 "2022-08-08T04:54:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cfios](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@cfios](https://forums.plex.tv/u/cfios)
#### Post date: [August 8, 2022, 4:54am UTC](https://forums.plex.tv/t/plex-showing-docker-network-instead-of-ip/803651/1 "2022-08-08T04:54:51Z")

</div>

Server Version#: 1.28.0.5999  
Player Version#:

Whenever I go to (https://)watch.mydomain(.)com/, my connection appears as unsecure remote. I understand that Docker essentially NATs the connections through it’s own network but I have been able to see WAN and LAN IPs how they should be expected. I can’t figure out what has happened for this to stop working.

All connections appear as the Docker network (found by running ‘docker network inspect root\_default’). It started in the 172.x.x.x range and I _assume from so many restarts,_ it is now in the 192.168.64.x/20. My local network is 192.168.45.0/24.

I have a VPS that I Reverse SSH tunnel to avoid opening ports:

```auto
ssh -fN -R 80:localhost:80 -R 443:localhost:443 mydomain(.)com

```

I am using Caddy as the reverse proxy and here is the config:

```auto
#Plex reverse proxy
watch.mydomain(.)com {
        reverse_proxy localmachine(.)lan:32400
}

...

```

This is my compose file:

```auto
services:
  caddy:
    image: caddy:latest
    container_name: caddy
    restart: always
    environment:
      - PUID=1000
      - PGID=1000
      - UMASK=002
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./configs/caddy/config:/config
      - ./configs/caddy/data:/data
      - ./configs/caddy:/etc/caddy
  plex:
    image: hotio/plex:latest
    container_name: plex
    restart: always
    ports:
      - "32400:32400"
    environment:
      - PUID=1000
      - PGID=1000
      - UMASK=002
    environment:
      PLEX_CLAIM: #(https://)plex(.)tv/claim
      ADVERTISE_IP: (http://)localmachine(.)lan:32400,(https://)watch.mydomain(.)com:443
      ALLOWED_NETWORKS: 192.168.45.0/24,10.189.78.0/24
    volumes:
      - ./configs/plex:/config
      - /mnt/data/media/movies:/media/movies
      - /mnt/data/media/tv:/media/tv

...

```

The Custom Server Access URLs in Plex are:

```auto
http://localmachine(.)lan:32400,https://watch.mydomain(.)com:443

```

I have flopped back and forth changing from http and https in the Access URLs and occasionally I am able to get a secure local connection if I connect by (https://)localmachine(.)lan:32400/ however, this is not consistent and I have trouble reproducing.

I can’t think of anything else to try and have already blown out my server and restarted a new one and tried a new distro without anything different happening. I have tried using network\_mode: host and got the same results.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [November 6, 2022, 4:55am UTC](https://forums.plex.tv/t/plex-showing-docker-network-instead-of-ip/803651/2 "2022-11-06T04:55:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
