🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #208685

Re: Delphi, Tor and SOCKS4/5 support

#208685
From: Anonyma
Date: Mon, 14 Aug 2006 17:48
40 lines
2367 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@deuxpi.ca>
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!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
References: <20060813194434.80C63X7O6L@smtp4.wanadoo.nl>

Show Full Headers
Complete Article Headers
Message-ID: <166c4eee917abfa1461353598c813afb@deuxpi.ca>
Subject: Re: Delphi, Tor and SOCKS4/5 support
Date: Mon, 14 Aug 2006 17:48:27 +0000
From: Anonyma <anon-bounces@deuxpi.ca>
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!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!news.wiretrip.org!news.dizum.com!sewer-output!mail2news
X-Anon-Help: <http://www.deuxpi.ca/anon>
 <mailto:deuxpi-admin@deuxpi.ca>
Newsgroups: alt.privacy.anon-server
X-No-Archive: yes
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 40