Hi everyone,
I have quite an issue here I wasn't able to resolve with these existing threads :
https://forums.plex.tv/discussion/75810/tv-and-plex-server-on-different-subnets
https://ubuntuforums.org/showthread.php?t=2213943
https://www.techpowerup.com/forums/threads/2-routers-and-plex-media-server.209620/
https://forums.plex.tv/discussion/comment/421460#Comment_421460
The situation is fairly the same as in the other threads : I have a home server that is on a separated subnet from all others devices. I put it there for security reasons, as it is accessible from the Internet (DMZ). And i can't access it from the main subnet.
The setup is the following : My main modem/router has the IP 192.168.1.1 with a mask of 255.255.255.0 and any device is automatically assigned an address 192.168.1.X when connected to the network (Wifi or ethernet). I have another router that has a static IP which is 192.168.1.200. This router creates a network, with no WLAN, with the IP 192.168.0.X/255.255.255.248 and has, in this subnet, an IP of 192.168.0.1. The home server is assigned a static IP of 192.168.0.2.
The main router is configured to route any incoming connection from the public IP to 192.168.1.200, which then are filtered by the second router with only some specific ports redirected to the server (eg SSH). One of them is port 32400, the one that Plex uses to allow access from the Internet.
From there, I can access without any problem Plex on my server from the Internet, but the problem comes when I am at home and try to use Plex on another device. The server is not found when I am in the subnet 192.168.1.X. I can only access it if I connect my computer to the network 192.168.0.X. But as I said, I want only the server to be in this subnet for security reasons. How can I connect to my Plex server being in the main network (192.168.1.X) ?
I've been able to connect to it using a VPN, but it's not a solution i'm satisfied with. I don't exactly know how the Plex server works to notify it's presence in the subnet, I suppose it's with the broadcast address or another IP that achieves the same goal.
I've thought of redirecting this "discovery" address to the broadcast address of the main network, but I'm pretty sure the routers wouldn't allow me to do that. Other solutions would consist in using a Raspberry Pi as a router to route the connections or modifying the firmware of the router to allow those kind of routing, but it's to long, I believe there is a simpler way.
Thank you for reading.
Note : Just to be clear, the problem is not accessing the server from the main network (using SSH, FTP, etc), but watching movies from the Plex App (https://app.plex.tv/web/app) : the server is not found.