za222 wrote:Hi,
i just noticed TC is unable to connect to FTPs running some versions of DRFTPD when behind a router:
PASV mode wont work as TC doesnt support PRET.
And active mode wont work as TC always sends LAN ip but drftpd requires the external WAN ip.
[...]
Is it possible to do that somehow in TC?
"PRET" is not even an ietf-draft

I would suggest to implement anything useful command - but not such bad documented, unnessesary and proprietary scrap
It is still a risk to implement ietf-draft commands, because any draft can change before getting a final "RFC" state. In such a case you'll have a program with incompatible behaviour, once your draft got RFC inbetween

But, as stated above, "PRET" is less than an ietf draft ...
The way, software engineers doing, is:
0 - seeing a problem
1 - having an idea
2 - playing around with it
3 - writing a first ietf-draft-proposal
4 - revide this proposal with other peoples minds, multiple times
5 - releasing it as so called "RFC"
6 - waiting for the IETF guys to mark this RFC as "STD" or "BCP"
STD is "Internet Standard", BCP is "Best Current Practice" (somewhat less than a standard)
"PRET" is in stage 2.
Most FTP-Commands (from RFC959) are in stage 6.
Some FTP-Commands (Directory Access) are in Stage 5. AFAIK, TotalCommander have not implemented yet any stage 4 stuff. And this is damn right this way!
The second way you asked for, an optional configuration field for an 'dyndns'-name is much better here. TC can do this very simple way. Just resolving the dyndns Internet-IP before sending "PORT" command, then faking the PORT args with the new IP.
This can be done without raping the standard and - by the way - it fixes an RFC 2577 issue. RFC 2577 aware servers don't send data to IP other than the IP the control connection comes from. And with clients behind NAT, the Control-IP is the same Internet-IP, the faked PORT command would send.
There is still ONE problem that the user must be aware of: if we fake the PORT's IP, we have still our local TCP port number. So this will only work, if the Port-Window from Internet is mapped 1:1 to the Port-Window of TC.
(At Fritz!Box DSL Modem you can do 1:1 mapping as well as any offset).
Of course, TC can also ask this mapping at configuration time. But there is NO way to automate this...
with best regards,
Modem Man