Jump to content

Default gateway and Plex Media Server

Go to solution Solved by Nayr438,

If your running Kubuntu on it, just edit the network connection and make it static.

  • System Settings -> Connections -> IPV4 -> Manual

Otherwise I would just use dhcpcd and setup a static profile. You would need to disable your current network manager, which I assume is NetworkManager.

https://wiki.archlinux.org/index.php/dhcpcd

 

http://manpages.ubuntu.com/manpages/trusty/man8/dhcpcd5.8.html

Hi,

 

I’m running Kubuntu, which is my Plex Media server. It has 2 ethernet ports (1 on Motherboard, 1 on Network card).

1 is connected directly to my modem and one is connected to a switch (WAN). Reason for that is that I have double NAT (using Google Wifi). In order to get remote access working, 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

This makes it work but after a restart I need to use that command again and then open the Plex Web interface to click on "retry" in the remnote access section.

 

How can I save my default gateway so I don’t have the remote access issue anymore?

 

  • I have already tried to set the preferred interface within Plex, but it didn't work.
  • I tried to make a script and let it run at startup

 

Thank you in advance.

Link to comment
Share on other sites

Link to post
Share on other sites

If your running Kubuntu on it, just edit the network connection and make it static.

  • System Settings -> Connections -> IPV4 -> Manual

Otherwise I would just use dhcpcd and setup a static profile. You would need to disable your current network manager, which I assume is NetworkManager.

https://wiki.archlinux.org/index.php/dhcpcd

 

http://manpages.ubuntu.com/manpages/trusty/man8/dhcpcd5.8.html

Link to comment
Share on other sites

Link to post
Share on other sites

28 minutes ago, Nayr438 said:

If your running Kubuntu on it, just edit the network connection and make it static.

  • System Settings -> Connections -> IPV4 -> Manual

Otherwise I would just use dhcpcd and setup a static profile. You would need to disable your current network manager, which I assume is NetworkManager.

https://wiki.archlinux.org/index.php/dhcpcd

 

http://manpages.ubuntu.com/manpages/trusty/man8/dhcpcd5.8.html

Thanks for your answer.

The field address in network connection: I suppose I need to set a static IP for my system (within the modem) and then write his address into this field?

Link to comment
Share on other sites

Link to post
Share on other sites

That would just be whatever ip address you want to assign on your local network for that device. You wont have to configure anything on your router.

So for a gateway of 192.168.0.1 , a ip like 192.168.0.25 would be fine, so long as another device isn't using it.

Edited by Nayr438
Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, Nayr438 said:

That would just be whatever ip address you want to assign on your local network for that device. You wont have to configure anything on your router.

So for a gateway of 192.168.0.1 , a ip like 192.168.0.25 would be fine, so long as another device isn't using it.

Thanks, that worked! So, no more running of that command line.

However, it seems like I still have to open up the Plex web interface and go to the remote access section in order to make it accessible outside of home (I don't need to press retry tho). Do you know if this is fixable somehow?

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×