![]() |
|
[C#] c# socket or tcpclient over with socks5 proxy - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] c# socket or tcpclient over with socks5 proxy (/showthread.php?tid=6017875) |
c# socket or tcpclient over with socks5 proxy - asdox - Oct 20, 2019 Im currently using this snippet that lets me rout the connection over http proxy Code public static TcpClient ProxyTcpClient(string targetHost, int targetPort, string httpProxyHost, int httpProxyPort, string proxyUserName, string proxyPassword)I need to do the same thing but only with socks5 proxy. Thanks 🤝 RE: c# socket or tcpclient over with socks5 proxy - gigajew - Oct 24, 2019 Haven't seen anyone do it this way before, that's pretty cool. However you would probably come out better using a library that supports different types of proxies for sockets. RE: c# socket or tcpclient over with socks5 proxy - REEND - Oct 13, 2020 .Net not have SOCKS4/SOCKS5 implementation, you have to write your own SOCKS5 client. See https://tools.ietf.org/html/rfc1928 |