简体   繁体   中英

SOCKS Proxy connection in iOS App

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.

proxychains might help you running the application in android using socks proxy. It is ac 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'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM