Article View: alt.privacy.anon-server
Article #208683Re: Delphi, Tor and SOCKS4/5 support
From: Borked Pseudo Mailed
Date: Mon, 14 Aug 2006 17:40
Date: Mon, 14 Aug 2006 17:40
40 lines
2272 bytes
2272 bytes
On Sun, 13 Aug 2006, John <john@hotmail.com> wrote: >Now the question is: what is it I have to modify on my Delphi-program >in order to support SOCKS4/5 and thus Tor. Which (Indy)-component do I >have to use and / or which properties do I have to set. >From the Indy Knowledge Base at http://www.indyproject.org/KB/index.html?tidtcpclientsocks.htm : For Indy 10 1. Create an IOHandler such as TIdIOHandlerStack or SSL IOHandler and assign the TCPClient.IOHandler property this. 2. Create a TIdSocksInfo object and assign it to the IOHandler's TransparentProxy property. 3. Set the TIdSocksInfo properties as required. 4. If there is another proxy that the SOCKS Proxy itself needs to use, you have to use, set the Chained Proxy to a TIdCustomTransparentProxy such as TIdSocksInfo for another socks Proxy or a TIdConnectThroughHttpProxy for a HTTP Tunneling proxy. Not for your version, but might be worth reading (from the same place as above): For Indy 8.0 In Delphi, do the following: IdTCPClient1.SocksInfo.Host := [the DNS name of the proxy server or its IP address] IdTCPClient1.SocksInfo.Protocol := [svNoSocks for no SOCKS support, svSocks4 for SOCKS 4, svSocks4A for SOCKS 4 with protocol extension, and svSocks5 for SOCKS 5 protocol] IdTCPClient1.SocksInfo.Authentication := [saNoAuthentication for no SOCKS authentication or saUsernamePassword for username and password authentication] HTH.
Technical Details
Message-ID:
<166c4eee917abfa1461353598c813afb@pseudo.borked.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!news.glorb.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2newsReferences:
<20060813194434.80C63X7O6L@smtp4.wanadoo.nl>Show Full Headers
Complete Article Headers
Message-ID: <166c4eee917abfa1461353598c813afb@pseudo.borked.net> Subject: Re: Delphi, Tor and SOCKS4/5 support Date: Mon, 14 Aug 2006 17:40:04 +0000 From: Borked Pseudo Mailed <nobody@pseudo.borked.net> References: <20060813194434.80C63X7O6L@smtp4.wanadoo.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!news.glorb.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2news Newsgroups: alt.privacy.anon-server X-No-Archive: yes Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com