TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

.NET TcpClient library to connect through proxy server

1 pointsby Ace__over 4 years ago
Hi.<p>We have implemented a .NET&#x27;s TcpClient that can connect through a proxy server.<p>It is a helper method that creates a new Socket and connects it to a destination Uri through a given Proxy.<p>Based on that socket a new TcpClient is created.<p>It takes one line to use it:<p>TcpClient client = Filemail.ProxiedTcpClient.ProxiedTcpClient.Create(proxyUri,destinationUri);<p>It is capable of detecting system proxy settings and handles proxies configured with *.pac script files<p>TcpClient client = Filemail.ProxiedTcpClient.ProxiedTcpClient.Create(destinationUri);<p>Code is hosted on github: https:&#x2F;&#x2F;github.com&#x2F;filemail&#x2F;ProxiedTcpClient Nuget package can be found here: https:&#x2F;&#x2F;www.nuget.org&#x2F;packages&#x2F;Filemail.ProxiedTcpClient&#x2F;<p>Feel free to give it a try. Any comments, suggestions, etc, please do let me know.<p>Cheers, Ace.

no comments

no comments