Plex Server automatically changing IP Adresses on Synology DS918+

Hi there,

I’ve some issues with Plex Media Server on Synology NAS DS918+.
Hope I can explain this correctly.

The NAS is connected to my Fritzbox 7490.
The router is always giving the NAS the same IP Adress. In my case:

Fritzbox: 192.168.0.1
Computer: 192.168.0.2

NAS: 192.168.0.56

I manually forward all useful Plex (and other ports) trough my fritzbox for the IP 192.168.0.56

So far, so good. I hope.

Now, if I want to use Plex “on the go” with my Smartphone everything works fine.
UNTIL I add the second LAN Cable (to connect my brothers Fritzbox, IP: 192.168.2.1) so he could also use my NAS.

After a while the plex Media Server changes the Plex IP Adress to one out of the 192.168.2.X range. So my forwarding doesnt work anymore.

What do I do wrong here?
Is this an issue with LAN Ports (1&2) on the NAS?

Any idea? If I missed anything or you need further information tell me :=)

Server Version#: 1.18.0.1913-e5cc93306
Player Version#: -

You can simply give a static address to your NAS… and Plex server… Should solve your problem. Personally, I change my DHCP. Rather than giving it full range I set it for say IP range 192.168.1.100-200. Then i set static addresses from say 192.168.1.25-50 IP range

I’m not sure if or how I can manually set the internal IP for my Media Server.
I attached 2 screenshots that shows both LAN Port configurations on the NAS.

The IPs are always the same. LAN2 is from my network with 35 at the end.
Portforwarding refers to that IP. Everything works fine, till i attach the second cable (LAN1) coming from another fritzbox with another subnet.
After a while the plex server changes to this IP, that I couldnt handle in my router and remote connection isnt available anymore.

See the problem? :slight_smile:

Should be able to do it through your router. check this link out

Thanks for your help so far! But I guess I didn’t manage to explain the problem in detail. The problem is not, that I couldn’t give the NAS an IP address or anything missing on my side (router), but instead it’s a matter of connecting a second LAN cable (from another fritzbox with another network).

I share the NAS with my brother, so that he can do backups and stuff. Therefore we connected one cable from my fritzbox to the NAS on Port 2 (IP 192.168.0.56) and one cable from his router on Port 1 (IP 192.168.2.114).

As long as I disconnect the LAN 1 cable everything works fine. I got my static IP, Portforwarding, Plex running, remote access works very well.

But… if I then reconnect LAN1, Plex (whysoever) changes the IP address (seen under plex settings) to this, which ends in remote access failure:

Hope this helps. Cause I couldn’t find out what I should do on my end in the fritz.box settings. Seems to me it has to be something on the NAS / Plexserver itself that I have to configure / fix.

To make your Synology’s IP address status, you have two choices:

  1. In the Control Panel -> Network -> Network Interfaces

Here is how I have set a Manual IP (static)

  1. The other method is to copy the MAC address and assign a DHCP reservation in your modem/router’s DHCP server. This is more work but accomplishes the same result.

Tried that. I manually changed now the first way you mentioned.
Maybe this helps. I already set my fritzbox up, so that it always gives the NAS Port 2 the same IP address. Thought it makes no difference setting up the router to always give the NAS the same static IP, or the NAS to demand the static IP on its own :slight_smile:

Thanks for explaining again, I think you Should have no problem connecting both computers + the NAS to the Fritzbox through the lan ports… they should get DHCP address from there… and communicate fine. You should set your NAS to a static IP so that never changes. All should work fine from there.

When you connect your bothers computer direct to the NAS box they are not connecting through DHCP. The you would need to set a static IP on your NAS box 192.168.2.10 for the ethernet… and then another static address on your brothers PC… 192.168.2.11 for them to communicate. Sounds like your NAS is defaulting to that ethernet port when you plug in your brother computer… and messing you up.

I’m coming to the conclusion that this “Fritzbox”, is a common problem for folks.

This isn’t the first thread about problems with one.

It’s just a internet modem / router.

I found it., thanks.

It may be just a ‘modem/router’ but there are a lot of problems it seems.
There was a wave of problems with the BT boxes a couple years ago.
Same basic issue.

Do you have a real router and are you able to place the Fritz into bridge mode?

I had a similar problem to what’s being described here.
My solution was to place an ActionTek T-3200 into full RFC-1483 transparent bridging (making it a pure media converter - modem) and giving the PPPoE / routing duties to a Netgate pfSense box.)

Just so we’re clear, when the problem occurs, you have your NAS connected to two separate routers; one on LAN port 1 and the other on LAN port 2. And your router is connected to LAN port 2. Have you considered using LAN port 1 for your router so that is the interface which is always connected? I’m not all that familiar with Synology, but on many vendors’ equipment the first interface is considered to be the primary, in a default configuration. It could be that when that interface is connected it automatically gets promoted and that passes through to PMS.

Once you have that sorted it may also be a good idea to set “Preferred network interface” to the desired value in Settings -> Network (Show Advanced" in PMS.

If I may add to that:

  1. While synology has a “Default Gateway” (which must be defined),

  2. If it’s the second (higher numbered) adapter, and a lower numbered adapter exists, Linux will override and use the lower numbered or even alternate between the two because the “Cost” (number of hops to get to the internet) is the same. This is the “Metric” value.

  3. Synology has their own form of ‘software router’ in the box. If you put two adapters on the same subnet, it WILL flip-flop between them. This happens because two adapters should never be on the same subnet with discrete IP addresses. It’s an undefined condition. If both are wanted, then create a LAG.

My advice is to disconnect one of the LAN ports, set the remaining one as the default adapter and address, to get it working.
After it works, then experiment.

The issue is that I have my network (using the fritzbox as modem/router) and my brother has his own fritzbox (also used as modem / router).
Two different IP ranges there and two fritzboxes talking to the NAS.

We need this setup, cause my brother (in another appartment) has his own devices, from where he wants to go to his own cloud, doing backups, etc.

Connecting one single PC of his to the NAS via cable isnt a problem.

First I thought that LAN Port 1 on the NAS is “higher” ranked (if you can call that) than the other LAN Port 2. So if he connects, the NAS (and so Plex) thinks "OK, this is my “main” network.

Dont know if this makes any sense :slight_smile:

I couldnt test using other routers, cause we’re only having those 2 fritzboxes and the usecases mentioned above :confused:

PS:
Thanks a lot for your comments!!! Great community here as it seems :slight_smile:

Having both networks on the same NAS isn’t a problem PROVIDED you each have your own subnet. e.g. 192.168.0.x and 192.168.1.x

This way, you can use it for the primary router feature and internet gateway you need while being a switch for him to access your network.

You can have his fritzbox plug into your NAS. (192.168.1.x)
Your NAS can connect to your fritzbox, staying on your LAN, and using your internet connection. (192.168.0.x). The 192.168.0.X adapter on your Synology would be marked as Default Gateway. This keeps your traffic in your subnet.

1 Like

As supplemental information,

To have PMS use a particular adapter as the main,

Settings - Server - Network - Show Advanced

Now select the adapter you wish PMS to respond on.
Pick the one for your network.

He will choose the one for his network if he runs PMS.

Hey there,

thanks a lot for the replies. For now, I changed the preferred network interface form all to eth 1 (which is actually port 2 on the NAS), the second router (my brothers) isnt connected atm.

I will switch the LAN ports later on the NAS, so that I am on Port 1. I also think that Synology does however consider the Port 1 as the primary as philipsw suspected.

So I will be connected to port 1, give the NAS a fixed IP for that, set PMS to only use this port… and then we’ll see :slight_smile:

Thanks a lot for your help so far. Will monitor and report if this will solve the problem!

Synology default is eth0 (port 1) unless changed otherwise.
This is because Linux starts at eth0, looking 0-1-2-3 as it initializes.

Good to know :slight_smile:

Just changed the ports. My router on eth0 with static IP, PMS set to this as gateway. Plugged in my brothers fritzbox LAN cable to eth1.

Now it’s time to wait if this setup stays without corruptions :slight_smile:

@m4tsu how did you all make out? All set?