Fixes deprecated warning in InetAddress.