So even though I had this working mostly reliably for the past couple of months, I still have trouble with remote access working, usually after any change/restart to the router or NAS.
It does not appear to be an issue with port forwarding but perhaps more of a DNS issue with the Plex servers. The server can be accessed via its external IP or DDNS name and https://v4.plex.tv/pms/:/ip returns the correct IP. When remote access is not working then PMS shows the IP of the VPN instead.
The split tunnelling is configured with the default route going to WAN but most traffic from the server is routed via the VPN with exceptions of 32400 and plex.tv.
@kesawi Do you have any more suggestions on checking for issues via https://plex.tv/api/resources?X-Plex-Token=XXXXXX_W. I can see from your screenshot it should load XML with the information that may help, but the only time I see that is when I was looking for my Plex Token.
@ChuckPa or another admin - would you be able to check from your side to see what has the correct IP/details and what doesn’t please?
This seems to be from my TV but the IP and DDNS address is correct and not what PMS is telling me in Remote Access.
EDIT: Typically has now started working again, but I will keep an eye on it as I expect any change as I mentioned will break it again. That said in the last couple of months it usually updates/fixes itself about 24 hours later.
Sorry, I only just noticed that you’d tagged me in.
Could be that your router isn’t routing outbound traffic from Plex reliably and sometimes it’s going out of the WAN, while other times it’s going out the VPN.
I also run multiple services from a single host with split tunnelling. I run each service in a Docker container using macvlan networking so that each container has a unique source IP address on my internal subnet. This makes it easier to route each service via either my WAN or LAN based on source IP.
Thank you both, perhaps more technical solutions than I am capable of tho ehe. Something I will remember though next time it happens.
It has been stable for the last couple of weeks, then reverted back to the VPN IP recently, although nothing has changed. However, a server restart and a couple of retry’s got it working again.
I think I will just have to accept that if I make any change or restart it will take up to 48 hours before it’s working again.
It used to be that way yeh, but then I felt it would be more efficient to have WAN as the default instead.
Most traffic doesn’t need to go through the VPN, I have it set so only devices within a certain IP range and my NAS (excluding ports like 32400 for Plex) are routed to the VPN.
That’s probably where the issue lies. You may have traffic from Plex that doesn’t sit neatly in one of your firewall rules, and as it originates from the NAS IP address it goes out via the VPN.