Further information on the port binding:
If I run my application as root, all is well.  If I run as another user, I
get the "Connection reset by peer" message when the device attempts to
connect and send a file to the server.

Let me check that I understand you.

The device / devices that are attaching to my FTPServer use ports 20 and 21.

If I map using IPTables port 20 to 10120 and port 21 to 10121 then I need to
bind my server to ports 10120 and 10121.
As I stated in the previous post, I cannot bind the server to 10120 and see
it appear on a netstat -a command.


As for your second point, If I have 10 devices trying to communicate with my
FTPServer on ports 10120 and 10121, will they be able to connect
simultaneously, or will they have to connect sequentially?

Reagrds

On Fri, Mar 12, 2010 at 11:15 AM, Niklas Gustavsson <[email protected]>wrote:

> On Fri, Mar 12, 2010 at 11:53 AM, Aidan Diffey
> <[email protected]> wrote:
> >                dataConnFactory.setActiveLocalPort(10120);
>
> This setting only affects the local port on which the server will bind
> when connecting to the users port. Note that in active connections,
> the clients listens on a port to which the server will connect. So,
> this setting is of no use in your case.
>
> Instead, you should look into setting the allowed passive port. And,
> note that in the current releases, we only support one active user per
> passive port. So, if you only expose one passive port, only one user
> will be able to use a data connection at any given time.
>
> For 1.1.0, we plan to support multiple users per passive port.
>
> /niklas
>

Reply via email to