Open mykolasglinskis opened 7 years ago
I think using the StarkSoft is useful. take a look at #824 issue.
@mostafa8026
I have tried StarkSoft with Socks5ProxyClient but not working so i want to try HttpProxyClient but HttpProxyClient not support http proxy with username and password. Is StarkSoft working with you?
@vuminhit I don't use StarkSoft anymore and this repository. you can use the main API with tdsharp. then you can use the core function addProxy.
trying to connect and work via proxy. my code looks like this ` private void Connect(string address, int port, bool useProxy) { if (!useProxy) { _tcpClient = new TcpClient(); var ipAddress = IPAddress.Parse(address); _tcpClient.Connect(ipAddress, port); } else { //TODO port is always 80 if we are behind proxy _tcpClient = connectViaHTTPProxy(address, 80); } }
for some reason timeouts are happening while connecting - not always but from time to time.