Indy 10.6 FTPServer不会与被动WAN客户端传输数据

时间:2017-02-24 17:17:05

标签: ftp server client indy

我花了无数个小时试图解决这个问题。我找到了使用Indy组件设置FTP服务器的示例代码(然后将其修复为Indy 10.6),但每当我尝试使用互联网从任何客户端(Filezilla,我自己的,ftptest.net等)连接时到主机系统的特定IP,它将登录然后失败以下(由ftptest.net提供):

Status: Resolving address of 64.113.100.88
Status: Connecting to 64.113.100.88
Warning: The entered address does not resolve to an IPv6 address.
Status: Connected, waiting for welcome message...
Reply: 220 Indy FTP Server ready.
Command: CLNT https://ftptest.net on behalf of 64.113.100.23
Reply: 200 Noted.
Command: USER fk30ftp@skutchelectronics.com
Reply: 331 User name okay, need password.
Command: PASS ************
Reply: 230 User logged in, proceed.
Command: SYST
Reply: 215 UNIX Type: L8
Command: FEAT
Reply: 211-Extensions supported:
Reply: COMB target;source_list
Reply: EPRT
Reply: EPSV
Reply: LIST -laT
Reply: MDTM
Reply: MDTM YYYYMMDDHHMMSS filename
Reply: MFCT
Reply: MFF Create;Modify;Windows.lastaccesstime;Win32.ea;
Reply: MFMT
Reply: MLSD
Reply: MLST size*;Type*;Create*;Modify*;Windows.lastaccesstime*;Win32.ea*
Reply: OPTS MLST;UTF8
Reply: REST STREAM
Reply: SITE ZONE;ATTRIB;UTIME
Reply: SIZE
Reply: SPSV
Reply: STAT -laT
Reply: TVFS
Reply: UTF8
Reply: XCRC "filename" SP EP
Reply: XMD5 "filename" SP EP
Reply: XSHA1 "filename" SP EP
Reply: RFC 959 2389 2577 3659
Reply: 211 End of extentions.
Command: PWD
Reply: 257 "/" is working directory.
Status: Current path is /
Command: TYPE I
Reply: 200 Type set to I.
Command: PASV
Error: Could not read from socket: Connection reset by peer

我能够在同一系统上通过TCPServer / Client连接完成工作而没有任何问题我已尝试通过2个不同的品牌/型号路由器,将它们设置为通过FTP端口连接到我的主机的IP计算机。

我看过很多帖子,人们正在努力解决这个问题,有些人将其客户端应用程序切换到活动模式来解决它;但为了我的目的,我需要客户端处于被动模式。

0 个答案:

没有答案