[ 
https://issues.apache.org/jira/browse/NET-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316523#comment-16316523
 ] 

Filipe Bojikian Rissi commented on NET-649:
-------------------------------------------

_You can just subclass FTPClient, and override the _parsePassiveModeReply 
method.
If the parameter matches 0,0,0,0,m,n then replace the IP address as required.
Then call the original method._

That's what I did in my production code.
Just thought taking in the commons-net could help others.

> 227 Entering Passive Mode
> -------------------------
>
>                 Key: NET-649
>                 URL: https://issues.apache.org/jira/browse/NET-649
>             Project: Commons Net
>          Issue Type: New Feature
>          Components: FTP
>    Affects Versions: 3.6
>         Environment: Fedora, Java 8
>            Reporter: Filipe Bojikian Rissi
>             Fix For: 3.7
>
>
> In a situation where I passed, the FTP server is restoring 227 Entering 
> Passive Mode (0,0,0,0,156,126), so it was obvious to me that the problem is 
> on the server side and not on the API, but using the File Zila client and 
> analyze the log precebi that the same problem was also happening, so he 
> changed the route to use the IP of the server that returned this information 
> and thus manages to make the route correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to