Use InetAddress for parsing ip