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
localPort) 
void    connect(String hostname, int port) 
void    connect(String hostname, int port, InetAddress localAddr, int
localPort) 

Hope that helps.

Hermann Pr�m


-----Urspr�ngliche Nachricht-----
Von: Ashish Naik [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 1. Juni 2004 15:42
An: [EMAIL PROTECTED]
Betreff: Commons-Net



Hi,

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?

Cheers,
Ashish Naik


*********************************************************
Disclaimer:          

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 http://www.mahindrabt.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to