commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: Commons-Net
Date Tue, 01 Jun 2004 13:54:03 GMT
Hi Ashish,

simply use one of the FTP-Clients' connect() methods (inherited from the
SocketClient class) that allow to specify a specific port.

void	connect(InetAddress host, int port) 
void	connect(InetAddress host, int port, InetAddress localAddr, int
void	connect(String hostname, int port) 
void	connect(String hostname, int port, InetAddress localAddr, int

Hope that helps.

Hermann Prüm

-----Ursprüngliche Nachricht-----
Von: Ashish Naik []
Gesendet: Dienstag, 1. Juni 2004 15:42
Betreff: Commons-Net


I am trying to use FTPClient class to perform ftp operations. I dont know
how to specify specific port in Connect method.

Can someone point out?

Ashish Naik


This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

Visit us at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message