I just want to get current system IP from Cloudfare from a console application. I looked a lot of online resources, but I couldn't find any working piece of code with HTTPS protocol.
Module Module1
Sub Main()
Dim client As New System.Net.WebClient
Dim data As String = client.DownloadString("https://1.1.1.1/cdn-cgi/trace")
Console.WriteLine(data)
End Sub
End Module
But it doesn't work and throws a very long error. I don't know how to fix it.