ReactiveNetwork icon indicating copy to clipboard operation
ReactiveNetwork copied to clipboard

ReactiveNetwork(RN) usage of IPv6 and DNS results prioritization

Open yifeifiona opened this issue 3 years ago • 1 comments

Hi, I would like to understand RN usage on IPv4 and IPv6 since I can't find in any documentation regarding this. More specifically, I would like to know:

  • Does RN officially support IPv6?
  • Does RN prioritize the use of IPv4 over IPv6?
  • Is it possible to configure IPv4 over IPv6?

The goal is to prioritize the use of IPv4 since it provides a more stable experience.

Any information will be appreciated! Thanks,

yifeifiona avatar Oct 25 '22 19:10 yifeifiona

Hi @yifeifiona,

RN library does not have any low-level code regarding prioritization of IPv6 over IPv4 or the other way around. Inside the library, in the internet.observing package, for verifying Internet connectivity, I'm using java.net.Socket, java.net.HttpURLConnection or javax.net.ssl.HttpsURLConnection depending on the chosen strategy. Java/Android handles other things related to this connectivity verification (probably IP prioritization too). In order, to implement such prioritization within the library, more research needs to be done. Any suggestions or PRs are appreciated. Nevertheless, I need to find some time to do more updates in this project :).

Regards, Piotr

pwittchen avatar Oct 26 '22 09:10 pwittchen