QuestionHelpChanging Proxy for C# Application ONLY

Posts 15 of 5 · Page 1 of 1
Changing Proxy for C# Application ONLY
Does anyone know a method to force your C# Application to run through a proxy server, without having to change the entire system's proxy settings?
I've gotten a rotator working that switches the system's proxy settings from a list of loaded servers, but have not been able to find a way to force only my application to run through it.
What sort of networking are you using? WebRequest and all derivatives have a Proxy option. For things like TCPClient I'm afraid you'll have to roll your own proxy code, they don't expose any proxy methods there.
I use some .dll i found awhile ago. Was a lot easier than coding from scratch.
Code:
 
WebProxy wp = new WebProxy(Proxy);
client.Proxy = wp;
xnet is easy to use with proxies.
Posts 15 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?