# Trying to install plex in bridge/macvlan mode

**URL:** <https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765>\
**Category:** Plex Media Server\
**Tags:** server-linux, server-docker\
**Created:** [September 15, 2023, 8:55pm UTC](https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765 "2023-09-15T20:55:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Utoptarman](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@Utoptarman](https://forums.plex.tv/u/Utoptarman)\
**Post date:** [September 15, 2023, 8:55pm UTC](https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765/1 "2023-09-15T20:55:09Z")

</div>

Server Version#:1.32.6.7468  
Player Version#:1.32.6.7468-07e0d4a7e

Hi,  
I have managed to install plex server in docker on ubuntu server 22.04.3 in hosts mode, it works well, but for more practical management with my router i would like to install it in bridge mode. I follow the template in github but it didn’t work.  
I want to use 192.168.1.100 (unused) but it always use the IP address of the pc and not the one i want.  
the only line that changes the IP in the .yml file is: “environment: ADVERTISE\_IP=[http://192.168.1.100:32400/](http://192.168.1.100:32400/)”?

---

<div class="post-metadata">

**Author:** ![sixxnet](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sixxnet](https://forums.plex.tv/u/sixxnet)\
**Post date:** [September 15, 2023, 9:09pm UTC](https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765/2 "2023-09-15T21:09:49Z")

</div>

You want macvlan not bridge.

[https://hub.docker.com/r/plexinc/pms-docker/](https://hub.docker.com/r/plexinc/pms-docker/)

---

<div class="post-metadata">

**Author:** ![Utoptarman](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@Utoptarman](https://forums.plex.tv/u/Utoptarman)\
**Post date:** [September 16, 2023, 11:51pm UTC](https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765/5 "2023-09-16T23:51:02Z")

</div>

I’m lost…  
I created a plex\_network with :

```auto
 sudo docker network create --driver=macvlan --ip-range=192.168.1.100/32 --subnet=192.168.1.0/24 --gateway=192.168.1.1 plex_network

```

Then make the yml file :

```auto
version: '2'
services:
  plex:
    hostname: plex-u-m
    networks:
      plex_network:
        ipv4_address: 192.168.1.100
    container_name: plex-u-m
    image: plexinc/pms-docker
    restart: unless-stopped
    environment:
      - TZ=Europe/Paris # Remplacez par votre fuseau horaire
    volumes:
      - /home/plex/config:/config
      - /home/plex/temps:/transcode
      - ...
networks:
  plex_network:
    external: true

```

and the result is a container well created, but inaccessible at 192.168.1.100:32400

What do you think is wrong?

edit :  
the command :

```auto
docker inspect \
  -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' plex-u-m

```

give me 192.168.1.100

So it should be good no?

---

<div class="post-metadata">

**Author:** ![Utoptarman](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@Utoptarman](https://forums.plex.tv/u/Utoptarman)\
**Post date:** [September 17, 2023, 12:07pm UTC](https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765/6 "2023-09-17T12:07:02Z")

</div>

Ok now it kinda works.  
I delete all unused network :

```auto
docker network prune

```

Delete local-kv.db from /var/lib/docker/network/files/  
Reboot the server.  
Create a new macvlan network :

```auto
sudo docker network create -d macvlan \
  --subnet=192.168.1.0/24 \
  --ip-range=192.168.1.100/32 \
  --gateway=192.168.1.1 \
  -o parent=enp2s0 plex_macvlan_network

```

And make a new docker-compose.yml file like this :

```auto
version: "3.0"

services:
  plex:
    image: plexinc/pms-docker:latest
    container_name: plex-u-m
    mac_address: 02:42:B1:71:D2:7F
    hostname: plex-u-m
    environment:
      - TZ=Europe/Paris
    volumes:
      - /home/plex/config:/config
      - /home/plex/temps:/transcode
      - etc..
    restart: unless-stopped
    networks:
      plex_macvlan:
        ipv4_address: 192.168.1.100
networks:
  plex_macvlan:
    external: true

```

And now i have access to the address 192.168.1.100:32400/web, but a problem remain, It use another MAC address, 02:42:C0:A8:01:64 insted of 02:42:B1:71:D2:7F and i don’t know why?

---

<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:** [December 16, 2023, 12:07pm UTC](https://forums.plex.tv/t/trying-to-install-plex-in-bridge-macvlan-mode/853765/7 "2023-12-16T12:07:49Z")

</div>

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