Knowledgebase
How do I set internal NAT address for non-passive PORT transfers?
Posted by Van Glass on 18 April 2007 12:46 AM
Using the setPortAddress(String address) method found in Ftp and Ftps classes you can set the external NAT IP address that will be used by client when issuing PORT command to server for non-passive (active) transfers. Using the setDataPortRange method you may also specify what incoming ports IP address will accept transfers on.

Example

ftp.setPassive(false);
ftp.setPortAddress("212.11.21.1");
ftp.setPortRange(2000,3000);
ftp.connect();
(199 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako fusion