L
Lars Both
Hi Everybody,
I have a really annoying problem. I've implemented an application, which
connects to a server, which IP does change rather often. I came upon the
problem, that my application would not connect to the server after it's IP
has changed.
I did some investigation and found out, that the default time for
dns-caching is infinite. And I found the property, that is supposed to
change it:
java.security.Security.setProperty("networkaddress.cache.ttl" , "0");
But it did not seem to change anything. I am still stuck with my problem.
I have to restart my application everytime the server gets a new ip.
Has anybody got experience with that?
Regards
LArs
I have a really annoying problem. I've implemented an application, which
connects to a server, which IP does change rather often. I came upon the
problem, that my application would not connect to the server after it's IP
has changed.
I did some investigation and found out, that the default time for
dns-caching is infinite. And I found the property, that is supposed to
change it:
java.security.Security.setProperty("networkaddress.cache.ttl" , "0");
But it did not seem to change anything. I am still stuck with my problem.
I have to restart my application everytime the server gets a new ip.
Has anybody got experience with that?
Regards
LArs