Reputation: 119
How to Connect SOCKS Proxy connection in iOS I am able to connect successfully SOCKS Proxy Server via Simulator, when using System network setting. I have tried ASIHTTPRequest but Falied. Here my sample ASIHTTPRequest code
NSURL *url = [NSURL URLWithString:@"my working URL in Browser"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setProxyHost:@"aa.bb.c.dd"];
[request setProxyUsername:@""];
[request setProxyPassword:@""];
[request setProxyPort:12345];
[request setDelegate:self];
[request startAsynchronous];
I want to connect and consume SOCKS Proxy connection & Web Service in my App on Device.Thanks in advance.
Upvotes: 4
Views: 3528
Reputation: 20
proxychains might help you running the application in android using socks proxy. It is a c library and overloads connect() routine of glibc. So any application requesting tcp connection goes through it.
I run my applications using this. for example 'proxychains java someclass'.
Upvotes: 1