java.net.ConnectException after remote IP address changes

From: Gasolinera (gasolinera_at_codetel.net.do)
Date: 11/22/03

  • Next message: Tim: "RMI problem"
    Date: Sat, 22 Nov 2003 11:23:14 -0400
    
    

    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.


  • Next message: Tim: "RMI problem"

    Relevant Pages

    • java.net.ConnectException after remote IP address changes
      ... I hope someone has ran into this before or has some insight as to how ... to fix this. ... server's IP address changes (it uses Dynamic DNS) then my program hangs with ... and that my porgram is trying to connect to the old address ...
      (comp.lang.java.programmer)
    • NEC Plasma Power Supply fried
      ... He's a Broadcast Maintenance Engineer at a 24 hour news channel and can ... fix any electronic equipment if he has a schematic or can identify the ... These units are NEC PX-42VP4A ... service manual or insight into where to ...
      (sci.electronics.cad)
    • NEC Plasma fried PS
      ... He's a Broadcast Maintenance Engineer at a 24 hour news channel and can ... fix any electronic equipment if he has a schematic or can identify the ... These units are NEC PX-42VP4A ... service manual or insight into where to ...
      (sci.electronics.misc)
    • NEC Plasma P S rebuild
      ... He's a Broadcast Maintenance Engineer at a 24 hour news channel and can ... fix any electronic equipment if he has a schematic or can identify the ... These units are NEC PX-42VP4A ... service manual or insight into where to ...
      (sci.electronics.basics)
    • Pasma Screen fried Powere Supply
      ... He's a Broadcast Maintenance Engineer at a 24 hour news channel and can ... fix any electronic equipment if he has a schematic or can identify the ... These units are NEC PX-42VP4A ... service manual or insight into where to ...
      (sci.electronics.equipment)