Re: Active FTP PORT command - port number



In article <1169954472.299107.148130@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
allab@xxxxxxxxxxxx wrote:

Hello All,

The PORT request has a parameter in the form

h1,h2,h3,h4,p1,p2

meaning that the client is listening for connections on TCP port
p1*256+p2 at IP address h1.h2.h3.h4.

Where p1 and p2 numbers are coming from? Are there any ftp
configuration files?

The FTP server normally asks the stack to find an unused port number and
bind the socket to it. It will change from connection to connection.

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.



Relevant Pages

  • Re: Check for activity on TCP port
    ... I'm looking for an event that will fire once a tcp port moves from the ... There's no such thing as a TCP port moving "from listening status to ... An entirely new connection, with the "established" ... Vista's new aero glass slows down the screen refresh ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Socket and cycle problem
    ... listening this port countinously. ... So I need make some loop to print data from 3883 port permanent. ... the data it receives from each connection after the remote side drops ... If you were to use the socket module, then it would look something like this: ...
    (comp.lang.python)
  • Re: Conditional Accept and Overlapped I/O Question
    ... it is imperative to hide the listening port on the server ... connection requests will come in from the same thread on the client side. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Correction
    ... Normally to physically disconnect is just a matter of reaching for the ... >> I have an ADSL connection which polls my computer from time to time, ... > disallow each and every port with Windows Firewall? ...
    (microsoft.public.windowsxp.messenger)
  • Re: Using Remote Desktop From an SBS Domain
    ... when you tried to RDP while attached directly to a port on your router? ... Internet to initiate an IP conversation with your computer. ... This situation is different than if you ran your own NAT connection sharing ...
    (microsoft.public.windows.server.sbs)