Re: Client to telnet into server and then ftp to another server
- From: Gordon Beaton <n.o.t@xxxxxxxxx>
- Date: 9 Aug 2006 08:57:41 +0200
On 8 Aug 2006 03:23:30 -0700, Marlo wrote:
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.
I know this isn't a direct answer to your question, but it might help
you find a better solution to your problem.
It sounds to me like you're trying to transfer files between two
hosts, neither of which is your localhost. It might be worth knowing
that the FTP protocol already supports this kind of transfer, i.e. an
FTP client on one host can be used to transfer files directly between
two other hosts, without the files passing the client host.
All that's required is that the client establish control connections
to each of the remote hosts. It's described in the RFC, in particular
figure 2 and section 5.2.
/gordon
--
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.
- Follow-Ups:
- References:
- Prev by Date: Re: jni - grab text in another non java program
- Next by Date: Re: How to display a "double" in all its precision???
- Previous by thread: Re: Client to telnet into server and then ftp to another server
- Next by thread: Re: Client to telnet into server and then ftp to another server
- Index(es):
Relevant Pages
|