Re: FTP server code in passive mode

From: Ulrich Hobelmann (u.hobelmann_at_web.de)
Date: 09/19/05


Date: Mon, 19 Sep 2005 23:51:20 +0200

ssantamariagarcia@hotmail.com wrote:
> I wonder if any of you know the necessary changes in the code to get a
> pasive mode FTP server,or maybe, where to find programming information
> in C language about it.

You need to implement the PASV and EPSV commands. Basically you need to
open a listening socket on your server (on whatever port you like) and
send the client a response indicating your ip and port (for PASV) or
just the port number (for EPSV). The client should then connect to your
socket and issue a command (data transfer, LIST, NLST) and you
send/receive data.

Take a look at how existing clients and servers do it.

-- 
My mouth says the words, my brain is thinking monstertrucks.
Joey (Friends)


Relevant Pages

  • Re: Unable to print to networked printer - get access denied messa
    ... Check the permissions on the server assuming the client has a true RPC ... How is the Standard TCP/IP port configured for the device? ...
    (microsoft.public.windowsxp.print_fax)
  • Re: interfaces lo:1 lo:2 lo:3? (for remote ssh tunnels)
    ... That's the problem tunneling (port forwarding) solves. ... >>can't get past the client firewall. ... > I don't understand why the server would be making the ... server initiates another connection to the client -- in this ...
    (Debian-User)
  • Re: Remote Connection Issue
    ... through port number 3389 and a workstation on the LAN through port number ... I understand that you want to allow a LAN client ... and you have configured server publishing rule ... > By default Terminal Server and Windows 2000 Terminal Services uses TCP ...
    (microsoft.public.windows.server.sbs)
  • Re: RealVNC
    ... Default listening port for RealVNC server that runs on the machine on which ... Then there is default Java listening port on port 5800 on the client machine ...
    (microsoft.public.windows.server.sbs)
  • Re: Redirecting data sent to a local printer to another host and port on the network
    ... All client workstations have access to the ... simply redirecting netcat traffic on port 9100 to port 515 on ... Only LPR clients talk to LPD print server daemons. ... >workstation at the branch site where the print job originated. ...
    (comp.unix.sco.misc)