On Thu, Nov 26, 2009 at 6:38 PM, acec acec <[email protected]> wrote:
> On listener page(http://mina.apache.org/ftpserver/listeners.html), I can 
> config the external-address by using the following example:
> <passive ports="123-125" address="1.2.3.4" external-address="1.2.3.4" />
>
> When I host my ftp by using DDNS, my external-address ip is dynamic. I have a 
> software to check external ip address periodically, when I detect the change, 
> how can I update external Ip address in ftpserver?

With the existing API, you would have to restart FtpServer as this
value can not be changed in runtime. Or, you can create your own
subclass of DefaultDataConnectionConfiguration that adds a setter for
passiveExternalAddress (make sure to make it thread safe).

/niklas

Reply via email to