Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in Java FTP by (320 points)
[color=blue]hi - we have been using EditFTPj successsfully for several years with few problems -great package many thanks -
however on changing to a Broadband connection (on remote end ) we are having an issue with connecting -
we ping the IP address and get a response immediately, then try the connection (no change to code anywhere )
- we are getting a 'Connection timeout' FTPException message IMMEDIATELY from the remote machine -
Does anyone have experience with Broadband behaving differently from a normal phone connection - is there something we should be setting in the FTP sopftware on the remote end ?? In the Broadband settings ??
glad for any hints or pointers - thanks
- Veronica

4 Answers

0 votes
by (320 points)
we never have to do this with the mainframe - but of course servers have to be coddled !!
so finally having blamed the developer(MOI) and this ftp package they decided to try a reboot of the server -
instant success - who knows what was the issue - something was storing parameters and not refreshing !!
so - just FYI - in case anyone else runs into this - JUST TRY A REBOOT FIRST
0 votes
by (320 points)
We need clarification on the problem we were having - does EdtFtpj store IP addresses from prev connections ?
Any array entries stored or default caching or an object still live for the DNS name perhaps ?
At what point does the ftp call find out the IP from the system ? - we dont reference the Domain Name Server directly
- not clear what the path is - please describe if you can - who calls what ?
It seems that since my system was 'in process' and there could have been EdtFTPj class object/s live when our Tech guys decided to change the IP address of our remote location.
The next ping command in my system returned the correct new IP address according to our log, yet my running system using EdtFTPj had an issue when going after the same DNS name again after the change -
they tried FTP from the command line in the server - it worked with no issues - ie found the correct IP
- can you confirm that either EdtFTPj itself keeps IP address or a base Socket class is doing that automatically ?
Of course as I said before, once we rebooted the server, of course we had no issues.
thanks for all help -
0 votes
by (162k points)
edtFTPj doesn't cache IP addresses per se.

However Java does cache IP addresses in the InetAddress class. So if you change a machine's IP address while a virtual machine is running, the cache will be wrong.

Caching can be disabled (probably not a good idea though) - google for networkaddress.cache.ttl and Java.
0 votes
by (320 points)
thanks so much - we are off researching this concept -
we think we will issue the ipconfig/flushdns if we have to change an IP address on the fly
:P - we will test if this resolves the issue first, without changing any ttl settings

Categories

...