I improve my server with newest version of Ftp Server(M4)
and then found that I can't connect myself with 127.0.0.1.
my real ip in network is 10.10.10.16, then I used this ip that is ok. I want to
know what make this happen!
is it DataConnectionConfigurationFactory?
My server code is simple:
>ListenerFactory listenerFactory = new ListenerFactory();
>listenerFactory.setPort(port);
>FtpServerFactory serverFactory = new FtpServerFactory();
>serverFactory.addListener("default", listenerFactory.createListener());
>FtpServer server = serverFactory.createServer();
>server.start();
The result:
ftp> open
To 10.10.10.16 2121
Connected to 10.10.10.16.
220 Service ready for new user.
User (10.10.10.16:(none)): de
331 User name okay, need password for de.
...
ftp> disconnect
221 Goodbye.
ftp> open
To 127.0.0.1 2121
Connected to 127.0.0.1.
Connection closed by remote host.