Plex Remote Access on Kubuntu

Server Version#: 1.19.4.2935
Player Version#: -

Hello,

I’m running Kubuntu, and my PMS has 2 network cards. 1 is connected directly to my modem and one is connected to the WAN. Reason for that is that I have double NAT (using Google Wifi).
In order to get remote access to work, I need to set the default gateway to the IP of my modem.

Using the command sudo route add default gw 192.168.0.1 makes it work, but after a restart I need to use that command again. How can I save my default gateway so I don’t have the remote access issue anymore?

Thank you in advance.

Have you considered telling Plex which network interface to use (in combination with a manual port forward)?
Settings > [Server Name] > Network > Preferred network interface

I have tried it right now. Unfortunately, it didn’t work.

Just to be more precise:

  1. I set the preferred interface.
  2. Restarted.
  3. Had to reclaim Server, etc. again.

I believe I set up port forwarding correctly on my modem. Static IP is set. Port 32400 is allowed on my system according to sudo ufw status.

The issue using the command is solved. See following thread that I started on the LTT forum: https://linustechtips.com/main/topic/1217196-default-gateway-and-plex-media-server/

However, after a restart I still need to open the Plex web interface and go to the “Remote access” setting in order to make it work. Important note: I do not have to click on “retry”. For some reason I just have to go to this tab.

How can I solve this issue, so at start up I do not need to open the web interface?

Meaning you cannot access your server from a device outside your home network until you opened the remote access settings? Or is it just he remote access status indicator that takes a moment to “turn green”?

Meaning you cannot access your server from a device outside your home network until you opened the remote access settings?

Exactly this.
After I restarted I tried to use Plex with my phone on mobile data:

  • before I logged into the PC-> didn’t load my content
  • after I logged into the PC → didn’t load my content
  • after I opened the web interface and logged into my Plex account (using my PIN) → didn’t load my content
  • opened remote access settings → loaded my content

Edit:
Weird. I just tried to access my content and it didn’t work, although I didn’t restart my PC. Then I opened the remote access setting and now I am getting the " Not available outside your network" again. Clicking on retry doesn’t remove the message.
However, after clicking on retry I am able to access my content now outside my home network even though I have the “Not available outside your network” message…

Sounds like your remote access setup is fundamentally broken/flawed… have you already looked into the remote access troubleshooting support article?

Yes I did.

  • Static IP in modem is set.
  • Port 32400 forwarded.
  • No Antivirus

I just ran the command again and now the remote access issue is gone again:

sudo ip route add default via 192.168.0.1

I had a Synology DS918+ where I had to utilize both ports as well. It worked there just fine. I basically just switched the device with a PC and adjusted the settings in the modem. So, I guess it’s more of a configuration issue on Kubuntu right now.

Anyone here that can help me with that issue?

When you have a nice clean FLAT (one subnet) LAN,
only one router between you and the internet,
firewall port 32400 open on the server machine itself.
Remote Access will work.

If you have the Gnome desktop (most do), or any type of “Network Manager” app which will write the “Default Route” into the configuration permanently for you, do it.

Linux these days is very “Point & Shoot”.

  1. DHCP gives you the default gateway & default route from the server if you’ve setup one (most ISP devices have DHCP services enabled).

  2. Gnome - Settings - Network is the Network Manager app I just eluded to. In there, in the GUI, you set these parameters and they persist until changed.

When configuration is all set, the opening page shows you full status.

1 Like

Thanks for your reply. Setting just everything to automatic doesn’t work for me.

This is roughly how my network looks like.

Not connecting the PMS to the modem gives me issues due to double NUT. Not connecting the PMS to the G-Wifi WAN gives me issues playing media on the network. Before I build my own Server I used a DS918+ NAS, where I had the same issue. However, after connecting it to the G-Wifi WAN and choosing the default gateway (modem), everything worked like a charm.

I see your issue.

  1. Modem should go to:
    a. PMS
    b. WiFi SSID provider (primary) in bridge / AP mode to be on same subnet as LAN
    c. Switch

  2. Living room switch to devices there and downlink to basement

  3. Basement AP devices on same subnet but with different assigned IP addresses.

The fundamental issue I see here is you are routing THROUGH your synology.
This is not how it’s done.

The Synology should be:

a. A peer host to all devices on your LAN so they can see PMS on the same subnet
b. Be on the ISP Modem-created subnet

The mandate here is to keep the LAN “flat” (all one subnet)… Anything else will cause double NAT (Network Address Translation)

1 Like

Thanks for your answer.

I am not sure if can follow you. I guess what our are saying is to get rid of double NAT?

When I initially set up Google Wifi I had issues. After hours, I ended up using the Google Wifi’s subnet in this configuration above. This way the mesh network worked. Later on when I got my NAS I got the double NAT issues.

In order for you to help me, maybe the section "(Not Recommended) Enable Bridge mode on your Google Nest Wifi router or primary Wifi point " of the G-Wifi support page may get us further.

I am really not sure what the next step would be.

I am asserting:

  1. Internet service comes in to your main switch (which is what defines your local LAN)
  2. From there, everything is a fan-out.
  3. The mesh wifi is for the player/client devices still on the same subnet.

Configuration wise,

  1. Yes, everything on 1 subnet . (some folks think different subnets make it more secure; it doesn’t.
  2. In the same way the external internet looks like one great big “wide open space” to you , you must configure your LAN to appear the same to your devices… Everything on the inside is “one wide open space”. The modem/router knows when to go “outside the fence” :wink:
1 Like

I unplugged the cable from the PMS to the living room switch and now it works. Thanks. :slight_smile:

PS: Would appreciate if anyone from the Team could give me an answer here Saving Photos on Android

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