> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joinmassive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET (in C#)

> .NET integrations should connect to the [Massive Network’s HTTP port](/authentication#HTTP) `65534` because [.NET doesn’t broadly support HTTPS proxies yet](https://github.com/dotnet/runtime/pull/87638):

```csharp theme={null}
using System.Net;

class Demo {
  static async Task Main(string[] args) {
    string username = Uri.EscapeDataString("{PROXY_USERNAME}");
    string password = "{API_Key}";
    string url      = "https://cloudflare.com/cdn-cgi/trace"; // Insert your target URL here
    string proxy    = "http://network.joinmassive.com:65534";

    HttpClientHandler   handler  = new() {
                                     Proxy                   = new WebProxy(proxy),
                                     DefaultProxyCredentials = new NetworkCredential(
                                                                 username, password
                                                               )
                                   };
    HttpClient          client   = new(handler);
    HttpResponseMessage response = await client.GetAsync(url);

    Console.WriteLine(await response.Content.ReadAsStringAsync());
  }
}
```
