osx - Stored Endpoint IP Address after Network Configure Changes in RMI -
i've got rmi server running on mac. once changed server ip , restart application , clients, clients keep connect old ip address right bind , lookup address. have no idea went wrong because program working on linux server different port.
what remote object clients got proxy[minervainterface,remoteobjectinvocationhandler[unicastref [liveref: [endpoint:[192.168.0.104:51815](remote),objid:[40d99efb:140ba232cec:-7fff, 6333954213550330995]]]]]
which 192.168.0.104 old ip , should 10.0.1.104
i've check host file , code, there no 192.168.0.*
please help, thank you.
update
i have confirmed server registry problem. have restarted server. did't remember else did registry. there way set manually?
update
i rune code on server inetaddress.getlocalhost().gethostaddress()
, returned 192.168.0.104
, can explain address came from. there no such address on server now
solved
i found java use hostname lookup localhost address, hostname not localhost
, have not been updated os x server
reason. updated record os x server console , solved annoying problem.
never thought that
Comments
Post a Comment