public static String getDefaultIP ( String strInterface ) throws UnknownHostException { String [ ] ips = getIPs ( strInterface ) ; return ips [ 0 ] ; }
Returns the first available IP address associated with the provided network interface