Article View: borland.public.cppbuilder.internet.socket
Article #823Re: TIdFTPServer, passive mode behind NAT
From: Remy Lebeau (TeamB)
Date: Wed, 19 Sep 2007 17:44
Date: Wed, 19 Sep 2007 17:44
28 lines
1878 bytes
1878 bytes
"David Perkins" <please@no-spam.com> wrote in message news:46f11284$1@newsgroups.borland.com... > Any idea why this error occurs? When the OnPASV event handler exists, TIdFTPServer tries to bind a listening socket to the IP that you specified. Since the IP is not local to the machine you are running on, the binding fails. Indy 9 does not support what you are attempting. Unless you don't mind hacking Indy's source code, then you will need to upgrade to Indy 10. TIdFTPServer has a new OnPASVReply event that you would need to use in order to customize the IP/Port that is sent back to the client. Don't use the OnPASV event for that anymore. > If I do not assign the VPort, would one be assigned by default? Yes, using the same property that you are using manually. > How would I specify a range of Ports it could choose from In Indy 9, you don't. Again, you would have to upgrade to Indy 10. TIdFTPServer has new PASVBoundPortMin and PASVBoundPortMax properties that you can use for that. Gambit
Technical Details
Message-ID:
<46f16020@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46f11284$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d2a2b002f04ef11a X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <46f11284$1@newsgroups.borland.com> Subject: Re: TIdFTPServer, passive mode behind NAT Date: Wed, 19 Sep 2007 10:44:16 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.29.61 Message-ID: <46f16020@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1190223904 75.83.29.61 (19 Sep 2007 10:45:04 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail