G
Gasolinera
Hello, I hope someone has ran into this before or has some insight as to how
to fix this.
I wrote a small program that connects via a raw socket connection to a
remote server. However the server's IP address is dynamic.
When my program connects for the very first time all is fine. But if the
server's IP address changes (it uses Dynamic DNS) then my program hangs with
a java.net.ConnectionException.
So my question is, is there anyway to tell the JVM to flush its
internally-stored DNS address-to-name values? I figure this is what's
happening, and that my porgram is trying to connect to the old address
because it is cached locally.
So, any ideas?
Thanks.
to fix this.
I wrote a small program that connects via a raw socket connection to a
remote server. However the server's IP address is dynamic.
When my program connects for the very first time all is fine. But if the
server's IP address changes (it uses Dynamic DNS) then my program hangs with
a java.net.ConnectionException.
So my question is, is there anyway to tell the JVM to flush its
internally-stored DNS address-to-name values? I figure this is what's
happening, and that my porgram is trying to connect to the old address
because it is cached locally.
So, any ideas?
Thanks.