Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in Java FTP by
Hi,

just a quick question
im rather confused here

what's difference between setRemoteAddress and setRemoteHost?

if i just want to connect using IP Address which one do i need to use?
and also which one i need to use if i want to connect via DNS?

thanks

2 Answers

0 votes
by (162k points)
setRemoteAddress takes an InetAddress object.

setRemoteHost takes either the hostname (which DNS will resolve), or the IP address as a text string such as 192.168.10.1

Hi,

just a quick question
im rather confused here

what's difference between setRemoteAddress and setRemoteHost?

if i just want to connect using IP Address which one do i need to use?
and also which one i need to use if i want to connect via DNS?

thanks
0 votes
by
Thanks

Categories

...