public static NetworkInterface getNetworkInterface ( Config config , String path ) { NetworkInterface value = getNetworkInterfaceByName ( config , path ) ; if ( value == null ) value = getNetworkInterfaceByInetAddress ( config , path ) ; if ( value == null ) throw badValue ( "No network interface for value '" + config . getString ( path ) + "'" , config , path ) ; return value ; }
Get a network interface . The network interface can be identified by its name or its IP address .