So inserting a high value into PasvPortRange may be a solution(start 16384 and PasvPortRange= 40000), but if other applications randomly uses ports in this range, what will be the behaviour of the ftpserver I mean, if x application uses port 16666 and when ftpserver also wants to open 16666, it gets an error, in this error case does it simply increases port number to 16667 or simply fails.
Another question is there a simple way under windows to reserve some ports to the use of an application, Could I say to windows that ports 16300-16400 are reserved for ftpserver and do not allow other applications open any port in this range even if ftpserver is not using that port yet?. --- Arno Garrels <[EMAIL PROTECTED]> wrote: > Marc wrote: > > With what I have see with the time, one port is > skip for each transaction. > > so with the range you have, only 2 transactions > can be done. > > Windows keep the port open for some time, so you > come at the end with no > > more port to do transaction. > > Well, a closed socket remains in TIME_WAIT state for > a while until it is > destroyed by Windows, this discussion is not new. > But I don't think > that those sockets use/block a port while in that > state. You can do a simple > test, set PortRange to 1 and run the tool TCPView > from Sysinternals (it > updates the view of open sockets dynamically). > Now connect and RETR or NLST to open a data > connection in passive mode > several times. In TCPView you will see sockets in > TIMW_WAIT state however > it's no problem to establish a new data connection. > I checked that yesterday > on W2K. > > --- > Arno Garrels [TeamICS] > > > > > Even with a bigger range like 100 ports, you > > can easily come to with no free port just by > checking some directory just > > because this will use a port for each send. > > > > The PasvPortRangeStart set the start > > the max set the max and when the server can't use > any port, this give you > > the No available PASV ports. > > > > HTH > > > > > > Marc > > TYPSoft > > http://www.typsoft.com > > > > At 03:50 2005-11-09 +0000, you wrote: > >> There is only one client, this client connects to > >> server checks some files and disconnects at some > >> specified intervals(polling). So In this case the > >> number 5 must be sufficient. PasvPortRangeStart > is > >> default 16384. Does this means that the > application > >> use 16384..16388.. If any port in this range is > in > >> use, then application fails or it is exceeds this > >> 16388 limit... > >> > >>>> I ran ftpserver program, and the clients in > passive > >>>> mode but after a while constantly I am getting > No > >>>> available PASV ports error. > -- > To unsubscribe or change your settings for TWSocket > mailing list > please goto > http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
