change InetAddress.getLocalHost to HostUtil.getInetAddress from Rio