Note: I have all forum notifications disabled. I only found out about this message because my own Plex Forum bot notified me of a new post in my Tautulli thread.
Re: “How Tautulli detects that remote access is not available”
Tautulli’s remote access check solely mimics the remote access indicator found in the Plex server settings.
- The remote access indicator retrieves the status from the
mappingState and mappingError values found at /myplex/account.
- The
mappingState and mappingError values are updated through PUT /myplex/refreshReachability.
My team and I have done some extensive testing to confirm this:
- Make sure remote access on the server is working and close all Plex Web clients.
- Go to
/myplex/account and it should say mappingState="mapped" and mappingError=""
- Disable remote access by removing the port forwarding rule in your router.
- No matter long you wait or how much you refresh the
/myplex/account page, the mappingState and mappingError values will not change.
- Using Postman (or curl) send
PUT /myplex/refreshReachability.
- Refresh
/myplex/account and it should say mappingState="mapped" and mappingError="unreachable".
The reverse is also true:
- Re-enable the port forwarding rule in your router.
- No matter long you wait or how much you refresh the
/myplex/account page, the mappingState and mappingError values will not change.
- Using Postman (or curl) send
PUT /myplex/refreshReachability.
- Refresh
/myplex/account and it should say mappingState="mapped" and mappingError="".
This is the reason Tautulli is sending the PUT /myplex/refreshReachability and GET /myplex/account.
Re: “Hourly or 30-minute check”
This is an unacceptable delay for Tautulli to notify of remote access errors. The intent is to have quick notifications of server status. Tautulli should notify you that your server is having remote access issues before your users send you a text message asking why Plex is down.
Currently, the mappingState and mappingError must report a failed status 3 times, to account for false statuses or temporary loss of connection, before Tautulli will send a notification (i.e. there is a 3-minute delay from initial remote access issues to receiving the notification). I would consider 5 minutes an acceptable maximum delay from initial issue to receiving the notification. However, only checking the remote access status once every 5 minutes does not allow me to account for temporary false statuses.
Re: “Using /api/resources”
The is nothing in the /api/resources endpoint that directly indicates whether remote access is working or not. The presence value only indicates if Plex Media Server is running or not, regardless of remote access availability.
My team and I have tested this as well:
- Make sure Plex Media Server and remote access are working.
- Go to
https://plex.tv/api/resources and it should say presence="1".
- Disable remote access by removing the port forwarding rule in your router.
- No matter long you wait or how much you refresh the
/api/resources page, the presence value will not change.
- Exit Plex Media Server.
- Refresh
/api/resources and it should say presence="0".
The reverse is also true:
- Port forwarding is still disabled in your router.
- Restart Plex Media Server.
- Refresh
/api/resources and it should say presence="1".
Re: “Why not ping the server’s http://PUBLIC-IP:PORT from /api/resources instead of using /myplex/account?”
Tautulli uses the indicator in the server settings to avoid confusion such as:
a. “Tautulli says remote access works, but the indicator in the server settings says it’s down” or
b. “Tautulli says remote access doesn’t work, but the indicator in the server settings says it’s up”
The assumption is that the remote access indicator in the Plex server settings is correct.
The Tautulli “Remote Access check” is really a “Plex Media Server is published to Plex.tv check”. The intent is to mimic the remote access indicator in the Plex server settings, and it is named “Remote Access check” to match the Plex server settings. The remote access indicator in the Plex server settings is not really a true indicator of remote access, instead it is really an indicator of “Is the Plex server published to Plex.tv successfully for remote clients to lookup the connection URI?” (i.e. DNS in a sense).
Example: You can “Disable Remote Access” in the Plex server settings and still forward a port in your router. You will still have remote access your server through http://PUBLIC-IP:PORT but the server settings will say “Not available outside your network”.
Therefore, the accuracy of Tautulli’s remote access notifications should be identical to Plex’s own remote access indicator. However, you are telling me that it is inaccurate because Plex’s own indicator is inaccurate because the pubsub servers are being overloaded. If Plex can suggest an alternative method of getting this information that maintains the level of service people have come to expect, I would be happy to switch to that. My suggestion would be to provide a websocket event that reports the remote access availability.