On Fri, Mar 12, 2010 at 12:57 PM, Aidan Diffey
<[email protected]> wrote:
> 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.

The devices must be configured to use passive connections (the default
is usually active connections).

> 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.

You will only see the port after the client sends the PASV command and
it will only live for as long as the transfer over the data connection
is in progress.

> 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?

They will be able to connect to the control socket simultaneously, but
only do data transfers sequentially.

/niklas

Reply via email to