Skip to content

Gracefully fallback to IPv4 when IPv6 connection fails #1601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DominikFickenwirth opened this issue Mar 30, 2025 · 0 comments
Open

Gracefully fallback to IPv4 when IPv6 connection fails #1601

DominikFickenwirth opened this issue Mar 30, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@DominikFickenwirth
Copy link

Describe the feature you'd like

When connecting to stream.mydomain.com, the logic (at least in my phone) seems to be(*):

  • If an AAAA-Record was found, try IPv6 connection. If that fails, show an error.
  • If no AAAA-Record was found, try IPv4 connection. If that fails, show an error.

It would be nice to gracefully fall back to IPv4, if IPv6 fails:

  • If an AAAA-Record was found, try IPv6 connect.
  • If that fails or if no AAAA-Record was found, try IPv4 connect.
  • If that fails, show an error.

Remarks

(*) This assumption is based on the following findings:

  • I have configured stream.mydomain.com with both an A-Record for IPv4 and an AAAA-Record for IPv6. Both addresses point to my NAS running on my home network (and are updated via DynDNS).
  • Due to an error in my home network, the IPv6 of my NAS was no longer reachable over the Internet. This resulted in "Unable to reach server ..." errors in the "Connect to Server" screen of the Jellyfin Android app.
  • After deleting the AAAA-Record from my DNS (i.e. only sending the IPv4 address via DynDNS), the Jellyfin Android app connected to my NAS as expected.
  • Before and after deleting the AAAA-Record, the Jellyfin web client always worked fine via my phone's browser (since the browser does gracefully fall back to IPv4).

Other notes:

@DominikFickenwirth DominikFickenwirth added the enhancement New feature or request label Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant