private static InetAddress getInetAddress ( String ip ) { if ( ip == null ) return null ; InetAddress addr = null ; try { addr = InetAddress . getByName ( ip ) ; } catch ( UnknownHostException e ) { Log . err ( e ) ; H2O . exit ( - 1 ) ; } return addr ; }
Get address for given IP .