title: Stored Endpoint IP Address after Network Configure Changes in RMI
body: <p>I've got a RMI server running on a mac. Once I changed the server IP and restart the Application and clients, then clients keep connect to the old ip address with right bind and lookup address. I really have no idea what went wrong because the program is working on another linux server just with different port.  </p>
  
  <p>What the remote object clients got is <code>Proxy[MinervaInterface,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[192.168.0.104:51815](remote),objID:[40d99efb:140ba232cec:-7fff, 6333954213550330995]]]]]</code> </p>
  
  <p>which 192.168.0.104 is the old IP and it should be 10.0.1.104 </p>
  
  <p>I've check the host file and my code, there is no anything like <code>192.168.0.*</code></p>
  
  <p>Please help, Thank you.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have confirmed this is a server registry problem. But I have already restarted the server. I did't remember what else did I do to the registry. Is there any way to set it manually?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I rune this code on that server <code>InetAddress.getLocalHost().getHostAddress()</code>, it returned <code>192.168.0.104</code>, that can explain where this address came from. But there is no such address on the server now</p>
  
  <p><strong>SOLVED</strong></p>
  
  <p>I found java use a hostname to lookup localhost address, that hostname is not <code>localhost</code> and have not been updated by <code>OS X Server</code> for some reason. I updated the record from OS X Server console and solved this annoying problem.</p>
  
  <p>NEVER THOUGHT ABOUT THAT</p>