All setup guides

Proxies in
C# / .NET HttpClient.

HTTP.NET

Get your connection details

Open your Residential, Datacenter, ISP or IPv4 access in the dashboard, then its configuration tab. Select the protocol shown here, your country and session settings.

Static ISP
Dedicated residential ISP IP with unlimited bandwidth — from $1.90 / ≈ $1.94 per IP (from 7 days). Best for accounts, profiles and messengers.
Rotating Residential
183 countries, cities and ASNs, rotating or sticky up to 30 min — from $0.60 / ≈ $0.60 per GB. Traffic never expires.
Rotating Datacenter
65 countries, up to 1 Gbps speed, sticky up to 24 h — from $0.40 / ≈ $0.40 per GB. Built for scraping and automation.
Dedicated IPv4
Dedicated datacenter IPv4 with one tenant and unlimited bandwidth — from $1.40 / ≈ $1.44 per IP.
host
Server address
port
Port for this protocol
login
Proxy username
password
Proxy password

Copy the fields separately. Proxy credentials are different from your Proxly account login. After changing the location, copy the updated proxy username again.

Open your connection

Connect the app

  1. Create a .NET console project. This example is not for Blazor WebAssembly.

  2. Set PROXLY_PROXY_HOST, PROXLY_PROXY_PORT, PROXLY_PROXY_USER and PROXLY_PROXY_PASSWORD to your HTTP connection details.

  3. Put the example in Program.cs and run dotnet run.

Connection example
using System.Net;
using System.Net.Http;

string Env(string key) => Environment.GetEnvironmentVariable(key)
    ?? throw new InvalidOperationException($"Set {key}");
var proxy = new WebProxy(Env("PROXLY_PROXY_HOST"), int.Parse(Env("PROXLY_PROXY_PORT"))) {
    Credentials = new NetworkCredential(Env("PROXLY_PROXY_USER"), Env("PROXLY_PROXY_PASSWORD"))
};
using var handler = new HttpClientHandler { Proxy = proxy, UseProxy = true };
using var client = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(20) };
Console.WriteLine(await client.GetStringAsync("https://api.ipify.org?format=json"));

The example makes one HTTPS request. Use the HTTP port from your connection details and keep TLS verification enabled.

Test the connection

Run the example and compare its returned IP with a direct connection. It should be the proxy's exit address.

Turn the proxy off

For a direct client set UseProxy = false in HttpClientHandler.

If the connection fails

Authentication error

Recopy the proxy credentials. Include the full username with location and session settings. HTTP status 407 means proxy authentication was not accepted.

Connection timeout

Check the dashboard host and the port for the selected protocol. Make sure the access has remaining data. Use HTTP for Chromium with username and password.

The IP did not change

Check the IP inside the configured app or browser profile. Make sure the test site is not excluded from the proxy. Telegram does not change your regular browser IP.

Still having trouble? Contact support