Re: Client to telnet into server and then ftp to another server



Marlo wrote:
Hi

I am trying to write a java client that connects to a ftp server.
The trick is that the ftp server has a private IP and is sitting
behind a Telnet server with a public IP address.

How can I go about implementing this client? [I already have the ftp
client working.].
The idea is first to connect via telnet, then connect to the ftp server
and then download/upload files.

Can I use TelnetInputStream or what other sugesstions do you have?

Thanks,
Marlo

I haven't done this, but it should theoretically be possible. I'd start with a telnet client and see if you can feed it text strings and get responses just as if you were sitting at a telnet terminal. Once you get that working, just use a command line ftp client on the telnet server. Download files to the telnet server, and then to the client from there. Streaming it in one go might be trickier.
.



Relevant Pages

  • Re: file transfer in python
    ... the receiver end should have an FTP server installing and running. ... Or, if you have ssh (client and server) installed, you could simply ... For the FTP approach, as Francesco said, the Python standard library ... The subprocess + scp method may be slower than the XML-RPC method, ...
    (comp.lang.python)
  • Re: file copying
    ... Remote Desktop has high bandwidth requirements ... Such that little upstream bandwidth is left for file transfers ... thankyou for that, how do i setup ftp server + client, do i have to set up server on pc with files i require and client on pc i need to copy to. ...
    (uk.comp.homebuilt)
  • Re: Isaserver 2004 and FTP
    ... I'm running IE on a ISA firewall client and I am trying to ... > Is the ISA server publishing an ftp server and you are accessing it from a ... > Are you running IE on the ISA server trying to access a remote ftp server ...
    (microsoft.public.isaserver)
  • Socket inactivity monitor - can it be done?
    ... ftp server in use here is 'pure ftp', ... requests a file from the server, in effect, the client ... and the real ftp server opens a socket connection ... it will stop pushing data out to the client through the socket... ...
    (comp.unix.programmer)
  • Client to telnet into server and then ftp to another server
    ... I am trying to write a java client that connects to a ftp server. ... The trick is that the ftp server has a private IP and is sitting ... The idea is first to connect via telnet, then connect to the ftp server ...
    (comp.lang.java.programmer)