The passive data connection configuration allows you you set an external IP to be sent in reply to the PASV command. You should be able to set this programmatically or using the built-in spring configuration. Here is a link to the documentation page that describes various configuration options.
http://mina.apache.org/ftpserver/listeners.html Hope this helps. Regards, Sai Pullabhotla On Tue, Feb 23, 2010 at 7:57 PM, DevNull 43 <[email protected]> wrote: > I'm using FtpServer in a machine hosted under NAT. > > Connected to myhome.homeip.net. > 220 Service ready for new user. > Name (myhome.homeip.net): admin > 331 User name okay, need password for admin. > Password: > 230 User logged in, proceed. > Remote system type is UNIX. > ftp> dir > 227 Entering Passive Mode (192,168,1,10,204,239) > ftp: connect: Network is unreachable > ftp> pas > Passive mode off. > ftp> dir > 200 Command PORT okay. > 150 File status okay; about to open data connection. > <it hungs> > > Most FTP servers solve this by setting a property in FTP daemon for > MasqueRading http://www.proftpd.org/docs/howto/NAT.html > > FtpServer has a DataConnectionConfiguration which seemed to be the correct > place for this. > However the setServerAddress methods I found are for binding purposes, and > not masquerading. > > Any hints on this are appreciated. >
