I am trying to connect through a SOCKS5 proxy to a web service. Currently my app.config is as follows:
<system.net>
<defaultProxy enabled="true" >
<proxy proxyaddress="http://xxx.xxx.xxx.xxx:yyyy" bypassonlocal="True" />
</defaultProxy>
</system.net>
This works great for HTTP proxies, however it just doesn't connect to SOCKS5. I searched many times for the answer and could not find anyone to solve this problem, although I found this question a couple of times. Does anyone know how I can do this?
source
share