try changing to use InetAddressUtils and clean up initialization a bit