# Second Server Setup

**URL:** <https://forums.plex.tv/t/second-server-setup/804254>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [August 12, 2022, 8:57pm UTC](https://forums.plex.tv/t/second-server-setup/804254 "2022-08-12T20:57:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 12, 2022, 8:57pm UTC](https://forums.plex.tv/t/second-server-setup/804254/1 "2022-08-12T20:57:55Z")

</div>

Server Version#:1.28.1.6018

I’m entertaining the idea of moving my PMS from a native install to a docker container.

I currently have my container setup but I’m unable to create a new server. When I go to the local ip, it takes me to a login screen. Once I log in, it just says my native install can’t be found (service is shut down to deconflict ports). While I know it is possible to run multiple servers, I can’t figure out how in the world to set it up. Send help!

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 12, 2022, 9:35pm UTC](https://forums.plex.tv/t/second-server-setup/804254/2 "2022-08-12T21:35:45Z")

</div>

You are trying to run two servers on the same physical computer, one on host system and one in a docker?

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 12, 2022, 9:48pm UTC](https://forums.plex.tv/t/second-server-setup/804254/3 "2022-08-12T21:48:18Z")

</div>

One on host server and one in dock.

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [August 13, 2022, 12:43am UTC](https://forums.plex.tv/t/second-server-setup/804254/4 "2022-08-13T00:43:21Z")

</div>

You cannot run two instances on the same computer.

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 4:20pm UTC](https://forums.plex.tv/t/second-server-setup/804254/5 "2022-08-15T16:20:52Z")

</div>

It is in a container, as far as Plex thinks, it is a second computer. Additionally, when I start the container I shut the native instance down.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 15, 2022, 4:33pm UTC](https://forums.plex.tv/t/second-server-setup/804254/6 "2022-08-15T16:33:28Z")

</div>

> [@Rasorjb](#):
>
> I’m entertaining the idea of moving my PMS from a native install to a docker container.
> 
> I currently have my container setup but I’m unable to create a new server. When I go to the local ip, it takes me to a login screen. Once I log in, it just says my native install can’t be found (service is shut down to deconflict ports). While I know it is possible to run multiple servers, I can’t figure out how in the world to set it up. Send help!

If I may add here?

You don’t need to create a new server.  
By carefully overlaying the directory structure, you can have the container use everything the existing server already has.

The container will completely assume the identity of the native server instance.

Would this be desirable ?

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 4:45pm UTC](https://forums.plex.tv/t/second-server-setup/804254/7 "2022-08-15T16:45:39Z")

</div>

At this moment I don’t want to duplicate the entire server, just a few movies for testing.

It is crazy to me that, I can’t just create a new server. Every time I log in it just says “ServerName” is unreachable - of course it is, i shut the service down. What if that server died and I wanted to start from scratch?! How do I do that?

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [August 15, 2022, 5:45pm UTC](https://forums.plex.tv/t/second-server-setup/804254/8 "2022-08-15T17:45:09Z")

</div>

You have server A and B on the same computer.

Server A works

Server B always shows offline

is that summary correct?  
Do the two servers have different friendly names?

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 15, 2022, 5:52pm UTC](https://forums.plex.tv/t/second-server-setup/804254/9 "2022-08-15T17:52:10Z")

</div>

internally the server always has a port of 32400. if two servers are on same computer it won’t work because two apps cannot use the same port at the same time

for docker remote access properly work, afaik you need to set it to bridge mode so it uses the host network, which you cannot do if you already have another server installed as above. else it i belive it’s own network. I think docker uses a 172.x.x.x type of IP. I don’t know docker well enough if you can change it so it gets IP from your routers DHCP so it appears as another computer on your local network rather than a separate network

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 5:57pm UTC](https://forums.plex.tv/t/second-server-setup/804254/10 "2022-08-15T17:57:55Z")

</div>

Ok.

Plex Server A - Native Install  
Plex Server B - Docker Install

Ports are deconflicted as when Server B is online, the service for Server A is stopped.

When server B is online, it simply says it cannot locate server A - I want it to act like it is a new server for me to setup and have no knowledge of server A.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 15, 2022, 5:59pm UTC](https://forums.plex.tv/t/second-server-setup/804254/11 "2022-08-15T17:59:50Z")

</div>

What are the local IPs of A and B

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 15, 2022, 6:03pm UTC](https://forums.plex.tv/t/second-server-setup/804254/12 "2022-08-15T18:03:12Z")

</div>

I’m not clear if B was ever claimed. try going to IPofB:32400/web in an incognito window. if it does not share the same network ( not on same DHCP) as your the browsers system is then you may have to ssh tunnel into it.

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 6:03pm UTC](https://forums.plex.tv/t/second-server-setup/804254/13 "2022-08-15T18:03:45Z")

</div>

Server A: 192.168.1.33  
Server B: 172.18.0.17 (shows as 192.168.1.33:32400 to outside devices).

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 6:04pm UTC](https://forums.plex.tv/t/second-server-setup/804254/14 "2022-08-15T18:04:52Z")

</div>

Incognito mode did not change anything.

How do I SSH into it?

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 15, 2022, 6:10pm UTC](https://forums.plex.tv/t/second-server-setup/804254/15 "2022-08-15T18:10:37Z")

</div>

i don’t know if you need to or even can enable SSH for Docker. You would need to check Docker’s own instructions for that. but these instructions for “open web app on a machine other than server itself” in this article for SSH tunnel [Opening Plex Web App | Plex Support](https://support.plex.tv/articles/200288666-opening-plex-web-app/#toc-2)

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 6:13pm UTC](https://forums.plex.tv/t/second-server-setup/804254/16 "2022-08-15T18:13:53Z")

</div>

![Screen Shot 2022-08-15 at 2.12.58 PM](https://global.discourse-cdn.com/plex/original/4X/c/6/c/c6cb6a940f16e90fd3276668330fc3075c7f4513.jpeg)  
This is a screenshot from server B. This screenshot is from a different computer on the same network. This IS the Docker instance.

All I want to do is setup a new server instead of this one looking for the alternate server. I have tried removing it, however, it still just wants to connect to other users available servers and gives no options to set up a new one.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 15, 2022, 6:23pm UTC](https://forums.plex.tv/t/second-server-setup/804254/17 "2022-08-15T18:23:50Z")

</div>

because it expects a new one to be a different IP. Since you have it so they are the exact same IP. When you sign in it look at your account and all the servers it has access to it sees Server A should be at that IP but it is not so it shows it as unavailable

you can try using and incognito window but do not sign in so it does not look for servers on your account.

---

<div class="post-metadata">

**Author:** ![Rasorjb](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rasorjb/32/17830_2.png) [@Rasorjb](https://forums.plex.tv/u/Rasorjb)\
**Post date:** [August 15, 2022, 6:40pm UTC](https://forums.plex.tv/t/second-server-setup/804254/18 "2022-08-15T18:40:06Z")

</div>

Changed server ip address to .34 and it still looks for old server vice trying to setup a new one. Even when I use incognito mode it still asks me to sign in and still looks for the old server, even with new ip.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [August 15, 2022, 7:29pm UTC](https://forums.plex.tv/t/second-server-setup/804254/19 "2022-08-15T19:29:18Z")

</div>

[http://192.168.1.34:32400/web](http://192.168.1.34:32400/web)

not http(s) if the server i not claimed and you are on same physical device then it should just go it it without signing in. (in incognito) if not then there is something funky about docker networking I don’t understand

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 15, 2022, 8:19pm UTC](https://forums.plex.tv/t/second-server-setup/804254/22 "2022-08-15T20:19:00Z")

</div>

If I may offer some help?

In your container config (you may need to recreate the container definition),

1. Get a Claim token from [Claim | Plex](https://plex.tv/claim)
2. Add the following environment variable setting to your container configuration.  
( Adjust formatting based on container creation method being used )

```auto
-e PLEX_CLAIM="CLAIM_TOKEN_HERE" 

```

1. Recommend you set a hostname in the container definition which is different than the Linux host so you have a default server friendly name which is different than the host.

2. Now, within 5 minutes (the token expires after 5 minutes)  
– Start the container  
– Open an incognito window to the LAN IP of the server (with you on the same subnet)  
– Sign in and confirm the claim

Ref: I base my container definition on this template:

```auto
docker run \
-d \
--name dockerplex \
--network=host \
-e TZ="<timezone>" \
-e PLEX_CLAIM="<claimToken>" \
-v <path/to/plex/database>:/config \
-v <path/to/transcode/temp>:/transcode \
-v <path/to/media>:/data \
plexinc/pms-docker

```

[Next page](https://forums.plex.tv/t/second-server-setup/804254.md?page=2)
