@Test public void testGetFirstIPV4NonLoopBackAddress() throws Exception { InetAddress localIp = ToolUtil.getFirstIPV4NonLoopBackAddress(); boolean isLoopBackIp = localIp.isLoopbackAddress(); Assert.assertNotNull("localIp is null", localIp); Assert.assertEquals(false, isLoopBackIp); Assert.assertEquals(true, localIp instanceof Inet4Address); Assert.assertEquals(false, localIp instanceof Inet6Address); }
public static InetAddress getFirstIPV4NonLoopBackAddress() throws SocketException { return getFirstNonLoopbackAddress(true, false); }
ToolUtil { public static InetAddress getFirstIPV4NonLoopBackAddress() throws SocketException { return getFirstNonLoopbackAddress(true, false); } }
ToolUtil { public static InetAddress getFirstIPV4NonLoopBackAddress() throws SocketException { return getFirstNonLoopbackAddress(true, false); } private  ToolUtil(); }
ToolUtil { public static InetAddress getFirstIPV4NonLoopBackAddress() throws SocketException { return getFirstNonLoopbackAddress(true, false); } private  ToolUtil(); static String getConfFolder(); static String getMetaStoreId(); static String getHostName(); static InetAddress getFirstNonLoopbackAddress(boolean preferIpv4, boolean preferIPv6); static InetAddress getFirstIPV4NonLoopBackAddress(); }
ToolUtil { public static InetAddress getFirstIPV4NonLoopBackAddress() throws SocketException { return getFirstNonLoopbackAddress(true, false); } private  ToolUtil(); static String getConfFolder(); static String getMetaStoreId(); static String getHostName(); static InetAddress getFirstNonLoopbackAddress(boolean preferIpv4, boolean preferIPv6); static InetAddress getFirstIPV4NonLoopBackAddress();  }