I don’t think it’s going to be possible with most residential routers. Honestly, it’s not a problem I’ve really ever thought much about. There are ways to gateway IPv6 to IPv4 (socat comes to mind), but you’d need to be able to run them on your router.
The server-specific plex.direct URL is a composite of several of things:
- The URL scheme (https://).
- Your IPv6 IP address delimited by hyphens instead of periods.
- Your certificate UUID.
- “plex.direct”
- The external port to advertise (:32400).
Where you find your certificate UUID is dependent on your server’s host OS:
- Windows - It’s located in the registry at HKEY_CURRENT_USER/SOFTWARE/Plex, Inc./Plex Media Server/CertificateUUID.
- Linux - It’s located in your server’s Preferences.xml file in the CertificateUUID parameter; the file can be found in the Plex data directory.
- macOS - Run
defaults read com.plexapp.plexmediaserver CertificateUUIDfrom the terminal. - For host types, it will generally be found in the Preferences.xml file, wherever it is stored on that system. The Plex data directory article linked above may help you find it.