Please make a basic inquiry about the use of HTTPS.
The connecting server has 5 servers (IP address) in one host name.
I want to connect to the server with the fastest IP among them.
For example, the hostname is "g.api.mega.co.nz", and I can find multiple IP addresses by calling GetHostAddresses.
Among them, the server with the fastest response is found through the ping test.
And I'm trying to make an Http connection to this server.
But the url has a name, not an ip.
For example, string url = "https://g.api.mega.co.nz/..." .
Where and how can I set it up so that I can connect to the IP I want?
Rebex.Net.HttpRequestCreator creator = new Rebex.Net.HttpRequestCreator();
creator.Settings.SslAllowedVersions = Rebex.Net.TlsVersion.TLS10 | Rebex.Net.TlsVersion.TLS11 | Rebex.Net.TlsVersion.TLS12 | Rebex.Net.TlsVersion.TLS13;
creator.Settings.SslAcceptAllCertificates = true;
string url = "https://g.api.mega.co.nz/...";
// find fastest ip
var request = creator.Create(url);
request.Method = "GET";
request.KeepAlive = true;
// set ip address
// request.??? = fastestip;
using (var response = request.GetResponse())