0 votes
by (2.0k points)

Hello.
I am having difficulties with IPV6 when using HTTPS.

A user's host has both IPV4 and IPV6 addresses.

  1. Is Rebex connected with ipv4 address first? Is there a way to try ipv6 first?

  2. Does Rebex have a function to automatically connect to ipv6 when ipv4 connection fails?

  3. When the domain is aaa.com, if I try to force a connection with ipv6, what should I do?
    Should I replace the address of ipv6 instead of aaa.com?

Thank you.
Best regards.

BooKyung Oh.
OpenBoxLab Inc.

Applies to: Rebex HTTPS

1 Answer

0 votes
by (147k points)
selected by
 
Best answer

Hello,

Rebex HTTPS resolves a domain name to both IPv4/IPv6, and picks the first IPv4 address. In case there is no IPv4 address, it picks the first IPv6 address. It then tries connecting to the picked address. Currently, this process is not configurable, although there are several possible workarounds.

Would an option to prever IPv6 to IPv4 be sufficient for your needs? We already had plans to add one.

by (2.0k points)
This is really exciting news.

I looked up the .Net source.

https://referencesource.microsoft.com/#system/net/System/Net/ServicePoint.cs,629163399e233013

Referring to the source code, .Net Http caches DNS information and tries all IP addresses. Also, it is supposed to try this full function twice.

Because of these features, they seem to connect well in a variety of situations.
Even if the port forwarding settings are twisted in many router settings, or there is a problem with the router settings on your Synology device, it seems to work because of the double try function.

Then we will wait for the patch version.
Thank you.
by (147k points)
Rebex HTTPS does not actually aim to replicate the behavior of .NET HttpWebRequest 1:1, and our developers are not even supposed to look into related .NET source code - we don't want any copyright infringement! Instead, Rebex HTTPS aims to provide a drop-in replacement that supports TLS 1.2 and 1.3 on legacy platforms, and which is stable, usable and behaves in a predictable way. So far, this approach has worked very well for most of our clients, and I hope you and the rest will be satisfied with the next release, which will make the connection establishment process much more customizable. I just sent you the link to the enhanced version.
by (2.0k points)
The test version you sent me works very well.
It seems that many parts of my code can be effectively improved with this Bind function.
Thank you very much for your support.
I apologize for my whining.
by (147k points)
Thanks! And no need to be sorry - we appreciate any kind of feedback! :-)
The Bind method will be available in Rebex Total Pack R6.3.
by (147k points)
Rebex Total Pack R6.3 has just been published: https://www.rebex.net/total-pack/history.aspx#R6.3
...