question: private byte [ ] tryDecodeHostToIp ( String host ) { if ( host . startsWith ( "[" ) && host . endsWith ( "]" ) ) { return tryDecodeHostToIPv6 ( host ) ; } return tryDecodeHostToIPv4 ( host ) ; }
target:  Checks if the host is an ip address. Returns the byte representation of it