Skip to content
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

NewPipe doesn't fallback to IPv4 when IPv6 fails #11141

Open
6 tasks done
arkkito opened this issue Jun 7, 2024 · 5 comments
Open
6 tasks done

NewPipe doesn't fallback to IPv4 when IPv6 fails #11141

arkkito opened this issue Jun 7, 2024 · 5 comments
Labels
bug Issue is related to a bug

Comments

@arkkito
Copy link

arkkito commented Jun 7, 2024

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.27.0

Steps to reproduce the bug

1 - Open NewPipe
2 - Nothing Loads, a loading circle just keep spinning

Expected behavior

Videos, and feeds load.

Actual behavior

Nothing Loads, a loading circle just keep spinning

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

Android 14

Affected device model

Samsung A52

Additional information

NewPipe is working fine on mobile data, when I switch to Wi-Fi nothing works.
Videos/Channels/Feeds, just don't load.
Official YouTube client works on Wi-Fi, so does YouTube's website.
I tried to load sound cloud from NewPipe and got the same behavior.
If you need any logs, let me know what logs, and where to get them.

EDIT:
I just noticed something.
I have no IPv6 connectivity on my Wi-Fi. Meaning I get a IPv6 public address (android grabs 2 with SLAAC), but my ISP is not forwarding any IPv6 packets, they are all dropped.
My mobile data network doesn't have IPv6, I suspect this is why I can connect using mobile data and not Wi-Fi.

I am suspecting NewPipe doesn't fall back to IPv4 connection if IPv6 fails? Or does it take a very long time to do it?
EDIT: If I disable IPv6 in my router, NewPipe works fine. It seems confirmed NewPipe doesn't change back to IPv4, if IPv6 drops all the packets. I guess this is not the most "normal" situation, but other apps seem to be able to handle it.

@arkkito arkkito added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Jun 7, 2024
@arkkito arkkito changed the title NewPipe doesn't load anything NewPipe doesn't fallback to IPv4 when IPv6 fails Jun 8, 2024
@opusforlife2
Copy link
Collaborator

There have been issues in the past mentioning IPv4 vs IPv6. Yours is the first one, I think, that has nothing to do with network switching, but different addresses on the same network.

@opusforlife2 opusforlife2 removed the needs triage Issue is not yet ready for PR authors to take up label Jun 8, 2024
@arkkito
Copy link
Author

arkkito commented Jun 9, 2024

I suppose is not expected to have a configured public IPv6, and then have no internet on it, would be the same as having no internet on IPv4.
My ISP is still deploying IPv6, is not something that they are officially offering yet. But so far, NewPipe is the only APP that I use that doesn't seem to switch back to IPv4, but I assume there are probably more.

@opusforlife2
Copy link
Collaborator

I wonder if it's a bug in Okhttp.

@lf-
Copy link

lf- commented Jun 10, 2024

I have also reproduced this after accidentally leaving DHCPv6 configured on my router with public addresses but no actual connectivity.

@arkkito
Copy link
Author

arkkito commented Jun 10, 2024

to help reproduce this issue, I think the problem only occurs if the DNS server servers both AA and AAA records.
I recently tried in a network behind Fortigate, Android configured IPv6 address, but there was no connectivity over IPv6, but the DNS server didn't serve any AAAA records.
NewPipe works good in this scenario.
I guess is obvious, if the dns retrieves only A records it will never connect to a IPv6 address, just reporting it for completeness and easiness to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug
Projects
None yet
Development

No branches or pull requests

3 participants