因此,几天前,我尝试创建一个家庭FTP服务器,可以从自己的网络访问它。有效。但是现在我想走得更远。我想通过任何外部IPv4地址从任何网络访问我的家庭FTP服务器。所以这是我的问题。
每当我想连接到localhost本地IP地址上或本地服务器上的服务器时,它都可以工作。但是,当我尝试使用外部IP地址上的相同凭据进行连接时,它表示无法检索目录列表:
Status: Connecting to *************:800...
Status: Connection established, waiting for welcome message...
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (**,***,*,***,***,106)
Command: MLSD
Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
Response: 425 Can't open data connection for transfer of "/"
Error: Failed to retrieve directory listing
Run Code Online (Sandbox Code Playgroud)
在中(模糊)的IP地址 …