I am having problem to get an Azure VM to access an external FTP server. The FTP site can be accessed from other computers just fine.
Using FTP commands, it will hang when I try to list the files on the FTP server.
C:\Users\user> ftp x.x.x.x
Connected to x.x.x.x.
220 Microsoft FTP Service
User (x.x.x.x:(none)): username
331 Password required for username.
Password:
230 User username logged in.
ftp> dir
500 Invalid PORT command.
150 Opening ASCII mode data connection for /bin/ls.
Next, using the Filezilla FTP client to perform the same is also not successful.
Status:Connecting to x.x.x.x:21...
Status:Connection established, waiting for welcome message...
Response:220 Microsoft FTP Service
Command:USER username
Response:331 Password required for username.
Command:PASS *************
Response:230 User username logged in.
Command:SYST
Response:215 Windows_NT
Command:FEAT
Response:211-FEAT
Response: SIZE
Response: MDTM
Response:211 END
Status:Server does not support non-ASCII characters.
Status:Connected
Status:Retrieving directory listing...
Command:PWD
Response:257 "/" is current directory.
Command:TYPE I
Response:200 Type set to I.
Command:PASV
Response:500 The server returned invalid response for PASV command.
Command:PORT 10,78,144,41,193,182
Response:500 Invalid PORT command.
Error:Failed to retrieve directory listing
Really appreciate to know how this can be resolved. Thank you.