[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [gftp] 500 Transfers to 3rd party addresses are not supported.
On Sat, Mar 13, 2004 at 05:08:52PM +0100, Oliver Lehmann wrote:
> PORT 10,0,1,51,6,202
> 200 PORT command successful.
> RETR /list.txt
> 500 Transfers to 3rd party addresses are not supported.
> The same with ncftp:
> ncftp / > get /list.txt
> list.txt: 169.14/166.59 kB 11.10 kB/s
> ncftp / >
> System ftp:
> ftp> passive
> Passive mode on.
> ftp> get list.txt
> local: list.txt remote: list.txt
> 227 Entering Passive Mode (*,*,*,*,189,214)
> 150 Opening BINARY mode data connection for list.txt (170587 bytes).
> 100% |******************************************| 166 KB 00:00 ETA
> 170587 bytes received in 14.85 seconds (11.22 KB/s)
> So.. where is the problem? ;)
This is a problem with the FTP server. When the PORT command is given, a data
connection is opened up on the client side and the server is supposed to connect
to that IP Address/port. If the PASV command is given, the server opens the port
and the client connects to that IP/port. This makes this command more firewall
friendly. If you want to transfer a file directly between two remote hosts, you
connect to both servers, run PASV on one server and then take the IP
address/port given and specify that in the PORT command to the other server.
Most FTP servers have an option to not connect to an IP address for the data
connection that is different than the control connection. This is what that
error message from PORT is telling you. Is the IP 10.0.1.51 that is on your
machine on the same network as the FTP server that you connected to? If not,
gftp may have picked the wrong IP address for your machine.