Skip to content

Simple test doesn't seem to work #1

@nopara73

Description

@nopara73

Could you tell me why this request gives me back my real IP?

var remoteParams = new ClientRemoteParams("127.0.0.1", 9051);
var client = Client.CreateForRemote(remoteParams);
if (!client.IsRunning || !client.Proxy.IsRunning) throw new Exception("Socks proxy not running");
			
var handler = new HttpClientHandler();
handler.UseProxy = true;
handler.Proxy = client.Proxy.WebProxy;
using (var httpClient = new HttpClient(handler))
{
	var content = httpClient.GetAsync("http://ipv4.icanhazip.com/").Result.Content.ReadAsStringAsync().Result;
	Console.WriteLine(content);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions