Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.2k views
in Java FTP by (1.3k points)
Is it possible to have the setActiveIPAddress(String) method which allows name instead of IP-number as input?
for example setActiveIPAddress("example.org");

1 Answer

0 votes
by (162k points)
Currently you need to convert to IP address, e.g.

InetAddress address = InetAddress.getByName("example.org");
setActiveIPAddress(address.getHostAddress());

I'm surprised no-one has asked before though ... we'll look at making a change so that this can be done.

Categories

...