@Test public void testGetIpv4Address() throws IOException { String addr = NetUtil.getIpv4Address().getHostAddress(); Assert.assertNotNull(addr); addr = NetUtil.getIpv4Address("11.24").getHostAddress(); Assert.assertNotNull(addr); System.out.println(String.format("[CRAFT-ATOM-UTIL] (^_^) <%s> Case -> test get ipv4 address. ", CaseCounter.incr(2))); }
public static InetAddress getIpv4Address() throws IOException { return getIpv4Address(null); }
NetUtil { public static InetAddress getIpv4Address() throws IOException { return getIpv4Address(null); } }
NetUtil { public static InetAddress getIpv4Address() throws IOException { return getIpv4Address(null); } private  NetUtil(); }
NetUtil { public static InetAddress getIpv4Address() throws IOException { return getIpv4Address(null); } private  NetUtil(); static InetAddress getIpv4Address(); static InetAddress getIpv4Address(String prefix); static boolean isLocalPortUsing(int port); static boolean isPortUsing(String host, int port); }
NetUtil { public static InetAddress getIpv4Address() throws IOException { return getIpv4Address(null); } private  NetUtil(); static InetAddress getIpv4Address(); static InetAddress getIpv4Address(String prefix); static boolean isLocalPortUsing(int port); static boolean isPortUsing(String host, int port);  }