Is this “anywhere” always outside of the home network where your server is residing?
If yes, then it’s due to your router deleting the port forwarding, which gets created upon Plex server starting up.
Switch from UPnP to a manually created port forwarding. The Basics of Remote Access Troubleshooting