question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPv6 connection is unavailable in South Korea due to ISP issue.

See original GitHub issue

Yesterday, KT(one of the biggest ISP companies in Korea) had a connection issue for whole regions in South Korea.

After they resolved the problem, Google’s Firestore service is not working properly. (Only in Android apps)

While I’m investigating the issue, I noticed Firestore Android SDK uses gRPC library for network connection.

https://github.com/firebase/firebase-android-sdk/blob/master/firebase-firestore/src/main/java/com/google/firebase/firestore/remote/FirestoreChannel.java

This issue can be resolved if you connect by only using IPv4.

But since we can’t inform to whole users to change their connection to IPv4 from their Android setting, it should be done with client app level.

We found this java -Djava.net.preferIPv4Stack=true command is not working for gRPC client.

I actually have no many knowledges about gRPC, so I aplogize if my question is not proper.

Is there any way to force whole connection to use IPv4 while using this library?

This problem is happening whole services which uses Firestore in South Korea.

I hope someone can give me a tip.

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ejona86commented, Oct 27, 2021

After they resolved the problem, Google’s Firestore service is not working properly.

Have you contacted Google support?

This issue can be resolved if you connect by only using IPv4.

Do you know in which way IPv6 is broken? What happens when IPv6 is attempted? It hangs trying to connect? I would expect it should eventually attempt an IPv4 address, but if things are really broken it may take a while (might take minutes, but it depends a lot on the specifics).

BaseDnsNameResolverProvider was replaced in https://github.com/grpc/grpc-java/commit/6a7e47b8a5e4d2dc5acf7249e84e8aff4a28be3d, which means your version of gRPC is at least 1.5 years old.

If this issue is relating to Android, then what is java -Djava.net.preferIPv4Stack=true talking about? You don’t use the java binary to execute Java code on Android.

1reaction
prodia4commented, Oct 26, 2021

We deregister the provider in the default NameResolverRegistry and register a custom one that extends BaseDnsNameResolverProvider, which provides a new DnsNameResolver with a custom address resolver set by setAddressResolver.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix an IPv6 No Network Access Error - Lifewire
Restart the router and modem. A problem with either your internet service provider or router might result in a lack of connection to...
Read more >
Tarkov is now completely incompatible with IPV6-only ISP's.
The problem is due to your ISP likely using CGNAT and as long as that's the case there is nothing you can do...
Read more >
IPv6 Roadmap Korea.pdf
(Resolving the issue of scarcity of IPv4 addresses) ISPs have said they will redistribute IPv4 addresses while CSPs said they will use private...
Read more >
East Asian countries surge ahead - SIDN
East Asian countries surge ahead. South Korean and Vietnamese telecoms firms go for large-scale IPv6-only implementations. Tuesday 30 July 2019.
Read more >
State of IPv6 Deployment 2018 - Internet Society
Over 25% of all Internet-connected networks advertise IPv6 connectivity. ... an upstream ISP that will use translation mechanisms to connect ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found